Javascript 如何配置节点soap请求主体的根元素?

Javascript 如何配置节点soap请求主体的根元素?,javascript,soap,wsdl,soap-client,node-soap,Javascript,Soap,Wsdl,Soap Client,Node Soap,我正在尝试使用节点SOAP包调用SOAP方法。 我的服务的WSDL是: <wsdl:definitions name="PublicoService" targetNamespace="http://tempuri.org/"> <wsdl:import namespace="" location="http://10.10.0.45:56777/Services/PublicoService.svc?wsdl=wsdl0"/> <wsdl:type

我正在尝试使用节点SOAP包调用SOAP方法。 我的服务的WSDL是:

<wsdl:definitions name="PublicoService" targetNamespace="http://tempuri.org/">
    <wsdl:import namespace="" location="http://10.10.0.45:56777/Services/PublicoService.svc?wsdl=wsdl0"/>
    <wsdl:types/>
    <wsdl:binding name="CustomBinding_PublicoService" type="PublicoService">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="GetAllDepartamento">
            <soap:operation soapAction="urn:PublicoService/GetAllDepartamento" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        .....
请求已发出,但我收到此信封正文

<soap:Body>
    <PublicoService_GetAllDepartamento_InputMessage></PublicoService_GetAllDepartamento_InputMessage>
</soap:Body>

这会导致错误,因为
应该是

我已经尝试过了,但无法更改该标记,它是自动创建的。
有什么帮助吗?

找到答案了吗?没有,我切换到另一个名为jquery.soap的库
<soap:Body>
    <PublicoService_GetAllDepartamento_InputMessage></PublicoService_GetAllDepartamento_InputMessage>
</soap:Body>