ngx-soap icon indicating copy to clipboard operation
ngx-soap copied to clipboard

Error: AssertionError: invalid message definition for rpc style binding

Open nishankkumar1994 opened this issue 5 years ago • 0 comments

I have SOAP method which expects something like

<urn:getOutBoundRouteAgent soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <agent xsi:type="urn:OutboundRouteAgent" xmlns:urn="urn:NumberingPlanServiceBean_System">
            <routeAccessDesc xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"></routeAccessDesc>
            <routeAccessId xsi:type="soapenc:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"></routeAccessId>
            <userId xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"></userId>
            <workgroupId xsi:type="soapenc:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">0</workgroupId>
         </agent>
      </urn:getOutBoundRouteAgent>

And I am calling it like in Angular

const new outboundRouteAgentData = OutboundRouteAgent();
outboundRouteAgentData.workgroupId = 0;
resultData = await (serviceClient as any).getOutBoundRouteAgent({OutboundRouteAgent: outboundRouteAgentData}).toPromise();

Same way, It's working fine for all other methods in same service. But returning error only on this function but methods i have tested in SOAP API is working fine.

nishankkumar1994 avatar Nov 16 '19 06:11 nishankkumar1994