You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by korges <ko...@hispeed.ch> on 2007/01/12 18:49:22 UTC
[axis2] Message addressing header required
Hi
I'm still trying to get my asynchronous webservice via smtp working
I managed to send Request's with my client to a specific mail server. The maillistener of the axis2 server
gets the message. The Server sends back an email. Unfortunately it is a Faultmessage (<wsa:FaultDetail><wsa:ProblemHeaderQName>wsa:Action</wsa:ProblemHeaderQName></wsa:FaultDetail>)
The problem might be that the Request doesn't consist a "wsa: Action". In the Maillistener Class the getMailHeader function isn't able to extract a soapaction.
How can i make the client adding wsa Action?
I also had some Problems with my custom wsdl (see below). The name="PAServiceSOAP11port_mail1" binding="axis2:PAServiceSOAP11Binding" is changing to http://192.168.1.2:8080/axis2/services/PAService"/
instead of mail:soapoversmtp@localhostaxis2/services/PAService. The funny thing about is that PAServiceSOAP12port_mail1 stays the way i entered it.
Thank you very much for your help! appreciating your great work.
best regards
nicholas
************* request sent by the client *************
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:To>mail:soapoversmtp@localhost/axis2/services/PAService</wsa:To>
<wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo>
<wsa:MessageID>urn:uuid:1FD82D2E46E43DB4C211686206836007</wsa:MessageID>
</soapenv:Header>
<soapenv:Body>
<tns:doWork xmlns:tns="http://localhost:8080/axis2/services/PAService"><tns:symbol></tns:symbol>
<tns:n1>503437</tns:n1><tns:n2>436785</tns:n2></tns:doWork>
</soapenv:Body>
</soapenv:Envelope>
*********************************************************
************* response sent by the server *************
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
<wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address></wsa:ReplyTo>
<wsa:MessageID>urn:uuid:EB8DC76FB765A1467B11686204102587</wsa:MessageID>
<wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>
<wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:1FD82D2E46E43DB4C211686203473175</wsa:RelatesTo>
<wsa:FaultDetail><wsa:ProblemHeaderQName>wsa:Action</wsa:ProblemHeaderQName></wsa:FaultDetail>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>wsa:MessageAddressingHeaderRequired</faultcode>
<faultstring>A required header representing a Message Addressing Property is not present</faultstring>
<detail /></soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
*********************************************************
************* wsdl *************
<wsdl:definitions targetNamespace="http://localhost:8080/axis2/services/PAService">
<wsdl:documentation>PAService</wsdl:documentation>
−
<wsdl:types>
−
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://localhost:8080/axis2/services/PAService">
−
<xs:element name="doWork">
−
<xs:complexType>
−
<xs:sequence>
<xs:element name="symbol" nillable="true" type="xs:string"/>
<xs:element name="n1" nillable="true" type="xs:int"/>
<xs:element name="n2" nillable="true" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:element>
−
<xs:element name="doWorkResponse">
−
<xs:complexType>
−
<xs:sequence>
<xs:element name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
−
<wsdl:message name="doWorkMessage">
<wsdl:part name="part1" element="axis2:doWork">
</wsdl:part>
</wsdl:message>
−
<wsdl:message name="doWorkResponse">
<wsdl:part name="part1" element="axis2:doWorkResponse">
</wsdl:part>
</wsdl:message>
−
<wsdl:portType name="PAServicePortType">
−
<wsdl:operation name="doWork">
<wsdl:input message="axis2:doWorkMessage" wsaw:Action="urn:doWork">
</wsdl:input>
<wsdl:output message="axis2:doWorkResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
−
<wsdl:binding name="PAServiceSOAP11Binding" type="axis2:PAServicePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
−
<wsdl:operation name="doWork">
<soap:operation soapAction="urn:doWork" style="document"/>
−
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
−
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
−
<wsdl:binding name="PAServiceSOAP12Binding" type="axis2:PAServicePortType">
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
−
<wsdl:operation name="doWork">
<soap12:operation soapAction="urn:doWork" style="document"/>
−
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
−
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
−
<wsdl:service name="PAService">
−
<wsdl:port name="PAServiceSOAP11port_http" binding="axis2:PAServiceSOAP11Binding">
<soap:address location="http://192.168.1.2:8080/axis2/services/PAService"/>
</wsdl:port>
−
<wsdl:port name="PAServiceSOAP11port_mail1" binding="axis2:PAServiceSOAP11Binding">
<soap:address location="http://192.168.1.2:8080/axis2/services/PAService"/>
</wsdl:port>
−
<wsdl:port name="PAServiceSOAP12port_mail1" binding="axis2:PAServiceSOAP12Binding">
<soap12:address location="mail:soapoversmtp@localhostaxis2/services/PAService"/>
</wsdl:port>
−
<wsdl:port name="PAServiceSOAP12port_http" binding="axis2:PAServiceSOAP12Binding">
<soap12:address location="http://192.168.1.2:8080/axis2/services/PAService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.9/623 - Release Date: 11.01.2007 15:33