lula / ngx-soap

Simple SOAP client for Angular
MIT License
66 stars 61 forks source link

Error: AssertionError: invalid message definition for rpc style binding #65

Open nishankkumar1994 opened 4 years ago

nishankkumar1994 commented 4 years ago

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.