I am trying to use XFire to generate a client to communicate with an external webservice that I have the WSDL for. The generation process goes fine, but then when I try to connect to the service I am getting a fault message. I had previously been able to connect to the service by sending it a raw XML message. After some testing, I determined that one main difference is that the messages that my XFire client are sending do not have any header information. Specifically, the webservice I am trying to contact implements WS-Addressing, but the messages I am sending do not have any addressing headers, so I believe their application server does not know how to handle my request.

So, long story short, is there any way to configure my client to send WS-Addressing headers along with its request?

The wsdl I am using contains operations such as:
<wsdl:operation name="Subscribe">
 <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
                    message="eb:SubscribeMsg"
wsaw:Action="http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe"/>
 <wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
                       message="eb:SubscribeResponseMsg"/>
</wsdl:operation>

so I want the message I am sending to look something like:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>
<S:Header>
  <wsa:MessageID>uuid:b6587c7c-f9d7-465e-87d8-230fa13c0da3</wsa:MessageID>
<wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
  <wsa:To>http://fake.com</wsa:To>
  <wsa:ReplyTo>http://fake.com</wsa:ReplyTo>
</S:Header>
<S:Body>
<Subscribe xmlns="http://schemas.xmlsoap.org/ws/2004/08/eventing";>...</Subscribe>
</S:Body>
</S:Envelope>

but it is currently sending out messages like
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
                         xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<soap:Body>
<ns3:Subscribe xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"; xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/08/eventing";>...</ns3:Subscribe>
</soap:Body>
</soap:Envelope>

How can I get XFire to add headers with the appropriate Action?

Thanks,
Eric

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to