在Angular 7中使用ngx SOAP使用SOAP web服务
我正在尝试将NGXSOAP与角度组件一起使用,但我无法从SOAPWeb服务检索结果 const promise=this.soap.createClient(“”); 来自(承诺)。订阅( client=>(this.client=client)在Angular 7中使用ngx SOAP使用SOAP web服务,angular,web-services,soap,angular7,Angular,Web Services,Soap,Angular7,我正在尝试将NGXSOAP与角度组件一起使用,但我无法从SOAPWeb服务检索结果 const promise=this.soap.createClient(“”); 来自(承诺)。订阅( client=>(this.client=client) ); 我有下面的肥皂信封 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:jav="http://javainuse.com"&g
); 我有下面的肥皂信封
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:jav="http://javainuse.com"> <soapenv:Header/> <soapenv:Body> <jav:inputSOATest> <test>test</test> </jav:inputSOATest> </soapenv:Body> </soapenv:Envelope>
测试
并期望在没有以下信封的情况下获得以下结果“Hello Test”
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <ns3:outputSOATest xmlns:ns3="http://javainuse.com"> <result>Hello test!</result> </ns3:outputSOATest> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
你好,测试!
最后,我使用java创建了一个通用中间件,它解析从任何SOAP web服务到JSON对象的任何响应。最后,我使用java创建了一个通用中间件,它解析从任何SOAP web服务到JSON对象的任何响应