Hi Dev,
When I invoke POST method to create resource in a legacy(SOAP) backend.
(Backe end is secured)in my API of a WUM updated ESB500 pack from a rest
client, I'm observing exception as follows from the Backend soap service.
The Other Methods (DELETE/GET) are working fine.
<faultcode>wsse:InvalidSecurity</faultcode>
<faultstring>Missing Timestamp</faultstring>
The resource of the API
<resource methods="POST" uri-template="/postCMedi">
<inSequence>
<property name="messageType" value="text/xml" scope="axis2"
type="STRING"/>
<property name="ContentType" value="text/xml" scope="axis2"
type="STRING"/>
<header name="SOAPAction" scope="transport" value="urn:postCMedi"/>
<payloadFactory media-type="xml">
<format>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:header>
<some value></some value>
</soapenv:header>
<soapenv:Body>
<ser:postCMedi xmlns:ser="
http://service.sample.central.com">
<ser:patient>
<xsd:insurer xmlns:xsd="
http://dto.service.sample.central.com/xsd">
<xsd:insurerEmail>?</xsd:insurerEmail>
<xsd:insurerName>?</xsd:insurerName>
<xsd:insurerPhone>?</xsd:insurerPhone>
</xsd:insurer>
<xsd:medical xmlns:xsd="
http://dto.service.sample.central.com/xsd">
<xsd:condition>?</xsd:condition>
<xsd:treatment>?</xsd:treatment>
</xsd:medical>
<xsd:parentGuardian xmlns:xsd="
http://dto.service.sample.central.com/xsd">
<xsd:guardianEmail>?</xsd:guardianEmail>
<xsd:guardianName>?</xsd:guardianName>
<xsd:guardianPhone>?</xsd:guardianPhone>
</xsd:parentGuardian>
<xsd:patientContact xmlns:xsd="
http://dto.service.sample.central.com/xsd">
<xsd:address>?</xsd:address>
<xsd:email>?</xsd:email>
<xsd:phone>?</xsd:phone>
</xsd:patientContact>
<xsd:patientFullName xmlns:xsd="
http://dto.service.sample.central.com/xsd">?</xsd:patientFullName>
<xsd:patientId xmlns:xsd="
http://dto.service.sample.central.com/xsd">105665</xsd:patientId>
<xsd:physician xmlns:xsd="
http://dto.service.sample.central.com/xsd">
<xsd:physicianEmail>?</xsd:physicianEmail>
<xsd:physicianName>?</xsd:physicianName>
<xsd:physicianPhone>?</xsd:physicianPhone>
</xsd:physician>
</ser:patient>
</ser:postCMedi>
</soapenv:Body>
</soapenv:Envelope>
</format>
<args/>
</payloadFactory>
<property name="Authorization" value="Basic
dGhpdnlhOnRoaXZ5YTEyMw==" scope="transport"/>
<log level="full"/>
<send>
<endpoint>
<address uri="
https://192.168.55.160:9443/services/CentralPatientService"
format="soap11"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<log level="full"/>
<property name="messageType" value="application/json"
scope="axis2" type="STRING"/>
<send/>
</outSequence>
</resource>
WSDL location
h*ttp://192.168.55.160:9763/services/CentralPatientService?wsdl*
<http://192.168.55.160:9763/services/CentralPatientService?wsdl>
Could you please help to resolve this?
--
*Thivya Mahenthirarasa*
*Software Engineer -Support Team | WSO2*
*Email: [email protected] <[email protected]>*
*Mobile: +94766461966 <http://wso2.com/signature>*
*Web: http://wso2.com <http://wso2.com>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev