xml - SOAP Request not working -
i'm consuming sap pi web service , reason it's not working. i'm thinking due incorrect soap xml below:
this sap pi expecting:
<?xml version="1.0" encoding="utf-8"?> <ns0:a_request xmlns:ns0="http://domain.co.au/abc"> <root> <element1>a</element1> <element1>a</element1> </recordset> </ns0:a_request>
this i'm sending:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <a_request xmlns="http://domain.co.au/abc" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <root> <element1>a</element1> <element1>a</element1> </recordset> </a_request>
is there way (programatically or config) can done on client side in order format xml request expected server?
or, should fixed in wsdl , client program (my program) automatically generate required xml?
thank heaps.
you should not manually generate or format xml sent server client side. if server exposes valid soap based service point client wsdl , generate typed classes can use consume service. if using .net 3.0 or higher on client recommended use svcutil.exe (or add service reference in vs) generate classes. if using older version use wsdl.exe (or add web reference in vs).
Comments
Post a Comment