WS Eventing with WS Addressing wsa:Action problemheaderqname

View: New views
3 Messages — Rating Filter:   Alert me  

WS Eventing with WS Addressing wsa:Action problemheaderqname

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to implement WS-Eventing using JAX-WS with WS-Addressing. Web Service is working without Addressing turned on. After turning it on while sending valid soap:Header i'm getting soap fault that Action is not present.

Request:
----------------------------------------

        ...
        <SOAP-ENV:Header>
                <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
                <wsa:To>http://10.0.2.2:8080/Eventing/EventSourceService</wsa:To>
                <wsa:ReplyTo>
                        <Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
                </wsa:ReplyTo>
                <wsa:MessageID>uuid:b734fc16-1cbb-4201-a944-7d593babf0f3</wsa:MessageID>
        </SOAP-ENV:Header>
        ...

Response:
----------------------------------------

<?xml version="1.0"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
        <S:Header>
                <FaultDetail xmlns="http://www.w3.org/2005/08/addressing">
                        <ProblemHeaderQName>{http://www.w3.org/2005/08/addressing}Action</ProblemHeaderQName>
                </FaultDetail>
        </S:Header>
        <S:Body>
                <SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
                        <faultcode xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://www.w3.org/2005/08/addressing" xmlns="">ns0:MessageAddressingHeaderRequired</faultcode>
                        <faultstring xmlns="">A required header representing a Message Addressing Property is not present</faultstring>
                </SOAP-ENV:Fault>
        </S:Body>
</S:Envelope>

Service source:
----------------------------------------

@Addressing(required=true)
@WebService(serviceName = "EventSourceService", portName = "EventSourcePort", endpointInterface = "org.xmlsoap.schemas.ws._2004._08.eventing.EventSource", targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing", wsdlLocation = "WEB-INF/wsdl/EventSource/event_source.wsdl")
public class EventSource {

    @Action(
        input="http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe"
    )
    public SubscribeResponse subscribeOp(Subscribe body) {
       
        return new SubscribeResponse();
    }

}

Web service is made from wsdl, but it does not have any influence if i put <wsaw:UsingAddressing wsdl:required="true"/> or not in it.

Using:
----------------------------------------
Glassfish v2.1
JAX-WS 2.1.10
IDE: Netbeans 6.7.1

Glassfish logs:
----------------------------------------

[#|2009-11-07T22:02:43.516+0100|WARNING|sun-appserver2.1|com.sun.xml.ws.addressing.WsaTube|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=982ed015-266d-46cf-85fa-a971ace765f5;|A required header representing a Message Addressing Property is not present, Problem header:{http://www.w3.org/2005/08/addressing}Action
com.sun.xml.ws.addressing.model.MapRequiredException
        at com.sun.xml.ws.addressing.WsaTube.checkCardinality(WsaTube.java:222)
        at com.sun.xml.ws.addressing.WsaServerTube.checkCardinality(WsaServerTube.java:269)
        at com.sun.xml.ws.addressing.WsaTube.validateInboundHeaders(WsaTube.java:141)
        at com.sun.xml.ws.addressing.WsaServerTube.processRequest(WsaServerTube.java:144)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
        at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)



Maybe someone will have an idea how to solve it...

Thanks in advance.
[Message sent by forum member 'marciniasty' (panglowacki@...)]

http://forums.java.net/jive/thread.jspa?messageID=371003

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: WS Eventing with WS Addressing wsa:Action problemheaderqname

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Problem solved. I was using WS-Eventing submission version which used old WS-Addressing 2004. The proper WS-Addressing which JAX-WS is using is that from 2005. Changing it solved the problem.
[Message sent by forum member 'marciniasty' (panglowacki@...)]

http://forums.java.net/jive/thread.jspa?messageID=371086

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: WS Eventing with WS Addressing wsa:Action problemheaderqname

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to implement WS-Eventing for c# and use java as client.
But I only can find a little example implementations on the internet with c#.

Does anyone knows if WS-Eventing is a wide used standard? Also a lot of postings and websites are at least 2 / 3 years old. So it looks like not that much people are using WS-Eventing. What are the advantages/disadvantages to use WS-Eventing instead of a non-standard?
[Message sent by forum member 'abijma' ]

http://forums.java.net/jive/thread.jspa?messageID=372521

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...