java - How to create POJO from the web service that returns dataset(<Object> any) -
sorry if below stupid question, tried many sites clear response, since i'm novice in web service couldn't understand anything.
i have been given wsdl file looks server , returns response in below format
<soap:envelop> ... .. <aresponse> <xxxdataset> <xs:schema> <xs:element> <xs:choice> ..... .....(elements here) </xs:choice> </xs:element> </xs:schema> </xxxdataset> <diffgr:diffgram> <dataset rows> -- values here </dataset rows> </diffgr:diffgram> </aresponse> .. </soap:envelop> i don't have pojo store these values (pojo not created when creating client wsdl). initial wsdl has <s:any> response.
how create pojo soap message? don't know if have ask wsdl provider or jaxb tools available out there generate pojo this.
tried link how create java object 'anytype' returned service using jaxb? there seems have pojo store response. in case, don't have one.
- ask provider sample request response soap xml.
- strip off soap envelope,header,body
you can strip off namespace , place like
<sometag xmlns="">instead of<xs:sometag>xs="given namespace"use tool/api xsd generator convert bare minimum xml pojo
in soap protocol header , envelope changed in production, contain namespace , credentials mainly. can write helper method append/remove these 'soap components' during marshall/unmarshall
this should started in right direction.
Comments
Post a Comment