soap

PHP Soap Client - sending the wrong headers “soapenv:VersionMismatch”

烂漫一生 提交于 2020-01-15 15:58:14
问题 I've come across a problem that I cannot figure out how to fix. I've created a soap client in php that is supposed to do an xml request to a web service - the service is working through SoapUI, but whenever I send the same request through my php client I get the following faultcode: <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>**soapenv:VersionMismatch**</faultcode> <faultstring>*

WS-Security Policy node not being generated in Apache CXF with Spring and custom context file

拥有回忆 提交于 2020-01-15 12:15:39
问题 I have an SOAP web service generated with Apache CXF and using Spring. The interface was generated from a WSDL without WS-Security Policy. Now I need to include this WS-Security node in the generated WSDL: <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wsu:Id="wss_saml_or

Setting MessageHeaders.To field gets overwritten

♀尐吖头ヾ 提交于 2020-01-15 11:54:29
问题 Here's the scenario: I'm trying to send a SOAP message to an intermediary router service. That service only cares about my SOAP message headers, and uses the WS-Addressing To header to forward along my message. I need to basically POST a request like the following to the router service: POST http://gatewayRouter/routingService HTTP/1.1 Content-Type: application/soap+xml; charset=utf-8 Host: gatewayRouter Content-Length: 8786 Expect: 100-continue Connection: Keep-Alive <s:Envelope xmlns:s=

Setting MessageHeaders.To field gets overwritten

假装没事ソ 提交于 2020-01-15 11:53:06
问题 Here's the scenario: I'm trying to send a SOAP message to an intermediary router service. That service only cares about my SOAP message headers, and uses the WS-Addressing To header to forward along my message. I need to basically POST a request like the following to the router service: POST http://gatewayRouter/routingService HTTP/1.1 Content-Type: application/soap+xml; charset=utf-8 Host: gatewayRouter Content-Length: 8786 Expect: 100-continue Connection: Keep-Alive <s:Envelope xmlns:s=

JAX-WS didn't get response on Websphere 8.5

点点圈 提交于 2020-01-15 10:16:26
问题 I got a job that I have to generate WS client from WSDL to communicate with server. I use WSImport(JAX-WS) to do the job because it seems less conflicts to different server. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <wsdl:definitions xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/" xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http:/

Savon soap body problem

落花浮王杯 提交于 2020-01-15 06:49:52
问题 I am using savon 0.9.2 and ruby 1.8.7. I am trying to make a complex type soap request. I need to figure out how to code the soap body for the below type of request using ruby and savon. Basically one of the complextypes in the request extends another type and also needs to be encoded as an array. The soap request object is supposed to look like this. <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http:/

How to get started node-soap

左心房为你撑大大i 提交于 2020-01-14 13:18:27
问题 I try to make soap-server with node.js using node-soap. I have wsdl like <definitions name="HelloService" targetNamespace="http://www.examples.com/wsdl/HelloService.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.examples.com/wsdl/HelloService.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <message name="SayHelloRequest"> <part name="firstName" type="xsd:string"/> </message> <message name="SayHelloResponse"> <part

How to get started node-soap

ぃ、小莉子 提交于 2020-01-14 13:17:27
问题 I try to make soap-server with node.js using node-soap. I have wsdl like <definitions name="HelloService" targetNamespace="http://www.examples.com/wsdl/HelloService.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.examples.com/wsdl/HelloService.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <message name="SayHelloRequest"> <part name="firstName" type="xsd:string"/> </message> <message name="SayHelloResponse"> <part

SOAP KeyInfo values

限于喜欢 提交于 2020-01-14 12:59:08
问题 I am trying to set up my Signature for a SOAP message. The only part I have left is to populate KeyInfo as such: > <KeyInfo> > <wsse:SecurityTokenReference> > <wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</wsse:KeyIdentifier> > </wsse:SecurityTokenReference> > </KeyInfo> I have tried a number of methods, but I have been unable to achieve this using KeyInfo and

SOAP::Data::Builder, remove xsi:nil=“true” when no value provided

99封情书 提交于 2020-01-14 09:52:27
问题 If I write this SOAP::Data::Builder code (where $sb is a SOAP::Data::Builder Object) $sb->add_elem( attributes => { run => 'true' }, name => 'ccAuthService', # value => ' ', # hack to prevent cs side unparseable xml ); it generates the following <ccAuthService xsi:nil="true" run="true" /> Which is unacceptable because the xsi:nil causes problems on the the receiving end. However if I uncomment the commented out line, I get <ccAuthService run="true"> </ccAuthService> Technically this works, so