You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-user@ws.apache.org by hpcaenne <lo...@hlrs.de> on 2005/09/14 19:25:12 UTC
namespaces
Hi,
currently I'm trying to subscribe my own webservice (as a notification
consumer) to an other, existing webservice (being a notification producer).
It seems as if the producer receives and accepts my subscription (I receive
a kind of subscription receipt). When the producer emits a notification, my
Tomcat seems to receive it somehow (I can see the text in the log file).
Yet, the notify method of my consumer is not invoked.
The Tomcat log file contains the following error text:
1) error: cvc-complex-type.2.4a: Expected element
'Address@http://schemas.xmlsoap.org/ws/2003/03/addressing' instead of
'Address@http://schemas.xmlsoap.org/ws/2004/03/addressing' here in element
ProducerReference@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotifica
tion-1.2-draft-01.xsd
This looks like "just" a problem with namespaces, doesn't it?
Any hint what I could do to have my notify method invoked?
(When subscribing to my own notification producer, it works: the notify
method of my consumer is properly invoked.)
Thanks & regards, Anne
Re: AW: namespaces
Posted by Sal Campana <sc...@apache.org>.
Anne,
The ConsumerReference in your subscribe request NEEDS the 2003/03
version of Addressing...The ConsumerReference schema type is an 2003/03
EndpointReference from the Addressing spec.
Please turn on debug logging and send the log output, your wsdl file and
your subscribe soap request so we can attempt to figure out what the
issue is.
Thank you,
Sal
hpcaenne wrote:
>Dear Sal,
>
>you are right: in my subscription request, the namespace is
>"http://schemas.xmlsoap.org/ws/2003/03/addressing" instead of
>"http://schemas.xmlsoap.org/ws/2004/03/addressing".
>
>Indeed I do this on purpose, because when subscribing with "...2003/03..." I
>get the error message:
>"Server was unable to process request. There is an error in the XML
>document. EndpointReference
>xmlns='http://schemas.xmlsoap.org/ws/2003/03/addressing' was not expected."
>
>When exchanging "...2003/03..." with "...2004/03..." in the subscription
>request, my consumer is subscribed.
>
>What can I do?
>
>Thanks & regards, Anne
>
>
>
>-----Ursprüngliche Nachricht-----
>Von: Sal Campana [mailto:scamp@apache.org]
>Gesendet: Mittwoch, 14. September 2005 20:07
>An: pubscribe-user@ws.apache.org
>Betreff: Re: namespaces
>
>hpcaenne wrote:
>
>
>
>>Hi,
>>
>>
>>
>>currently I'm trying to subscribe my own webservice (as a notification
>>consumer) to an other, existing webservice (being a notification producer).
>>It seems as if the producer receives and accepts my subscription (I receive
>>a kind of subscription receipt). When the producer emits a notification, my
>>Tomcat seems to receive it somehow (I can see the text in the log file).
>>Yet, the notify method of my consumer is not invoked.
>>
>>
>>
>>The Tomcat log file contains the following error text:
>>
>>1) error: cvc-complex-type.2.4a: Expected element
>>
>>'Address@http://schemas.xmlsoap.org/ws/2003/03/addressing' instead of
>>
>>'Address@http://schemas.xmlsoap.org/ws/2004/03/addressing' here in element
>>ProducerReference@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotific
>>
>>
>a
>
>
>>tion-1.2-draft-01.xsd
>>
>>
>>
>>This looks like "just" a problem with namespaces, doesn't it?
>>
>>
>>
>>Any hint what I could do to have my notify method invoked?
>>
>>
>>
>>(When subscribing to my own notification producer, it works: the notify
>>method of my consumer is properly invoked.)
>>
>>
>>
>>Thanks & regards, Anne
>>
>>
>>
>>
>>
>>
>I think what is happening is that your subscription request is sending a
>2004/03 EPR instead of the WSN required 2003/03 EPR...The Subscribe
>request from the WSN spec WSDL uses the 2003/03 EPR for subscribing to
>resources...Anything else is a problem...Check out how you are
>subscribing and where you are getting the EPR from...
>
>-S
>
>
>
>
>
AW: namespaces
Posted by hpcaenne <lo...@hlrs.de>.
Dear Sal,
you are right: in my subscription request, the namespace is
"http://schemas.xmlsoap.org/ws/2003/03/addressing" instead of
"http://schemas.xmlsoap.org/ws/2004/03/addressing".
Indeed I do this on purpose, because when subscribing with "...2003/03..." I
get the error message:
"Server was unable to process request. There is an error in the XML
document. EndpointReference
xmlns='http://schemas.xmlsoap.org/ws/2003/03/addressing' was not expected."
When exchanging "...2003/03..." with "...2004/03..." in the subscription
request, my consumer is subscribed.
What can I do?
Thanks & regards, Anne
-----Ursprüngliche Nachricht-----
Von: Sal Campana [mailto:scamp@apache.org]
Gesendet: Mittwoch, 14. September 2005 20:07
An: pubscribe-user@ws.apache.org
Betreff: Re: namespaces
hpcaenne wrote:
>Hi,
>
>
>
>currently I'm trying to subscribe my own webservice (as a notification
>consumer) to an other, existing webservice (being a notification producer).
>It seems as if the producer receives and accepts my subscription (I receive
>a kind of subscription receipt). When the producer emits a notification, my
>Tomcat seems to receive it somehow (I can see the text in the log file).
>Yet, the notify method of my consumer is not invoked.
>
>
>
>The Tomcat log file contains the following error text:
>
>1) error: cvc-complex-type.2.4a: Expected element
>
>'Address@http://schemas.xmlsoap.org/ws/2003/03/addressing' instead of
>
>'Address@http://schemas.xmlsoap.org/ws/2004/03/addressing' here in element
>ProducerReference@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotific
a
>tion-1.2-draft-01.xsd
>
>
>
>This looks like "just" a problem with namespaces, doesn't it?
>
>
>
>Any hint what I could do to have my notify method invoked?
>
>
>
>(When subscribing to my own notification producer, it works: the notify
>method of my consumer is properly invoked.)
>
>
>
>Thanks & regards, Anne
>
>
>
>
I think what is happening is that your subscription request is sending a
2004/03 EPR instead of the WSN required 2003/03 EPR...The Subscribe
request from the WSN spec WSDL uses the 2003/03 EPR for subscribing to
resources...Anything else is a problem...Check out how you are
subscribing and where you are getting the EPR from...
-S
Re: namespaces
Posted by Sal Campana <sc...@apache.org>.
hpcaenne wrote:
>Hi,
>
>
>
>currently I'm trying to subscribe my own webservice (as a notification
>consumer) to an other, existing webservice (being a notification producer).
>It seems as if the producer receives and accepts my subscription (I receive
>a kind of subscription receipt). When the producer emits a notification, my
>Tomcat seems to receive it somehow (I can see the text in the log file).
>Yet, the notify method of my consumer is not invoked.
>
>
>
>The Tomcat log file contains the following error text:
>
>1) error: cvc-complex-type.2.4a: Expected element
>
>'Address@http://schemas.xmlsoap.org/ws/2003/03/addressing' instead of
>
>'Address@http://schemas.xmlsoap.org/ws/2004/03/addressing' here in element
>ProducerReference@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotifica
>tion-1.2-draft-01.xsd
>
>
>
>This looks like "just" a problem with namespaces, doesn't it?
>
>
>
>Any hint what I could do to have my notify method invoked?
>
>
>
>(When subscribing to my own notification producer, it works: the notify
>method of my consumer is properly invoked.)
>
>
>
>Thanks & regards, Anne
>
>
>
>
I think what is happening is that your subscription request is sending a
2004/03 EPR instead of the WSN required 2003/03 EPR...The Subscribe
request from the WSN spec WSDL uses the 2003/03 EPR for subscribing to
resources...Anything else is a problem...Check out how you are
subscribing and where you are getting the EPR from...
-S