Trying to build a correct SOAP Request

前端 未结 4 593
滥情空心
滥情空心 2020-12-10 04:16

I have been struggling for hours trying to build the correct SOAP request using ksoap2 for Android with no luck. The ideal request looks like this:



        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 04:29

    Have you checked whether the types generated by kSOAP for parameters (i.e. i:type="n1:parameters") and Parameter (i.e. i:type="n1:Parameter") nodes are correct (they are defined in the wsdl)?

    Try setting

    envelope.implicitTypes = true;
    

    And also play with

    envelope.setAddAdornments(false);
    

    to force kSOAP not to include the type attribute and name spaces.

提交回复
热议问题