consuming webservice errors

0
I want to manipulate a software system using the offered websevice. I get errors: When I try the webservice manually (http://www.validwsdl.com/) it works. How can I solve this? WSDL: http://www.wikispaces.com/site/api?wsdl li: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "xsi" (for attribute "type") at [row,col {unknown-source}]: [1,146] at MyFirstModule.Login_wks (CallWebservice : 'Call web service 'login'') Advanced stacktrace: at mz.a(SourceFile:190) Caused by: javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "xsi" (for attribute "type") at [row,col {unknown-source}]: [1,146] at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:116) at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:282) at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:258) at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:184) at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:137) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:641) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:600)
asked
1 answers
1

Arthur,

To call this webservice just use a custom body like:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <username xsi:type="xsd:string">123</username>
         <password xsi:type="xsd:string">123</password>
      </urn:login>
   </soapenv:Body>
</soapenv:Envelope>

Then with this the call is done correctly and the response is an error because of the invalid login and password in the case above. You can catch this error with a error handler in your microflow. Hope this help you in calling this specific webservice.

answered