Hi Dan,
Thanks for your reply.In the above attached WSDL, I have used the correct definition of wsnt:Notify. But the problem I am facing is that now I cannot use the org.apache.axis.wsdl.WSDL2Java tool to generate the java code (the normal procedure that I follow to get my java code for Axis based Web Service), it gives some parsing error.
In case I use org.apache.ws.notification.tool.WsnWsdl2JavaTask
tool then it would work but then it would make it a WSDM compliant Web Service. It means that the Web Service needs to expose at least one resource (which is not our scenario). We want the consumer to be a normal Axis based Web Service (not exposing any resource) just exposing common utility functions. Is there a way to achieve this?
- Naga Muni Reddy
On 7/6/06, Daniel Jemiolo <[EMAIL PROTECTED]> wrote:
Hi,
Your WSDL does not have the correct definition of wsnt:Notify - if you
look in the OASIS WSN WSDL file[1], you can find all of the correct
wsdl:message and wsdl:operation elements that you should copy into your
own WSDL. Be sure to copy the prefix/namespace declarations as well. Once
you have a portType and binding that declares the Notify operation with
the proper name, your consumer will know that wsnt:Notify messages are
supported and you should start receiving the notifications.
[1] http://ws.apache.org/pubscribe/wsn.html - use WS-BaseNotification v1.2
Dan
"Muni Reddy" <[EMAIL PROTECTED]> wrote on 07/06/2006 08:26:29 AM:
> Hi Dan,
> My notification consumer is not a WSDM compliant pubscribe consumer,
it's a
> normal webservice (deployed on axis) which implements notify () method.
>
> Can you direct me to what steps are required to make such a consumer
capable
> of receiving notifications automatically, if it is possible.
>
> Please find an attached wsdl file generated by Axis Java2WSDL tool.
>
> I appreciate your help in this matter.
>
> - Naga Muni Reddy
> On 7/6/06, Daniel Jemiolo < [EMAIL PROTECTED]> wrote:
> Did you base your notification consumer on the template consumer project
> in pubscribe? Or is this your own project? There is probably a small
error
> in your WSDL (definition of the Notify operation) or deployment
descriptor
> (binding to the Java code that implements Notify) that is causing the
> messages to be dropped. The pubscribe docs say that any
> NotificationProducer will send its messages to the consumer's Notify
> operation, so it must be a problem of deployment artifacts. If you can't
> find the problem, sending your WSDL will be a good next step for finding
> the problem.
>
> Thanks,
> Dan
>
>
>
> "Muni Reddy" < [EMAIL PROTECTED]> wrote on 07/06/2006 07:38:38
AM:
>
> > Hi,
> >
> > I have one NotificationProducer web service(WSDM MUWS specifications
> > compliant) and a NotificationConsumer as a general webservice (not
WSDM
> > compliant). I am able to subscribe for a topic, but the
> NotificationProducer
> > is not able to send notification to NotificationConsumer even when I
> have a
> > "notify" method defined in it. However, consumer can get the
> notifications
> > through "GetCurrentMessage" request but I want it to be sent
> automatically
> > by the NoificationProducer to this Consumer.
> > 1) Is NotificationConsumer bound to be a Web Service that is WSDM MUWS
> > compliant to receive notifications automatically? If not, please let
me
> know
> > how to get notifications.
> >
> > Regards,
> > Naga Muni Reddy.D
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> Regards,
> Naga Muni Reddy.D [attachment "testSoap.wsdl" deleted by Daniel
Jemiolo/Durham/IBM]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Regards,
Naga Muni Reddy.D
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="urn:temp" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:temp" xmlns:intf="urn:temp" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsntw="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl"> <!--WSDL created by Apache Axis version: 1.3 Built on Oct 05, 2005 (05:23:37 EDT)--> <wsdl:import namespace="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl" location="../spec/wsn/WS-BaseNotification-1_2-Draft_01.wsdl"/>
<wsdl:types> <schema targetNamespace="urn:temp" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ArrayOf_soapenc_string"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]"/> </restriction> </complexContent> </complexType> </schema> </wsdl:types> <wsdl:message name="mainResponse"> </wsdl:message> <wsdl:message name="mainRequest"> <wsdl:part name="args" type="impl:ArrayOf_soapenc_string"/> </wsdl:message> <wsdl:message name="degreeToFahrenheitRequest"> <wsdl:part name="degree" type="xsd:float"/> </wsdl:message> <wsdl:message name="degreeToFahrenheitResponse"> <wsdl:part name="degreeToFahrenheitReturn" type="xsd:float"/> </wsdl:message> <wsdl:portType name="TempConv"> <wsdl:operation name="main" parameterOrder="args"> <wsdl:input message="impl:mainRequest" name="mainRequest"/> <wsdl:output message="impl:mainResponse" name="mainResponse"/> </wsdl:operation> <wsdl:operation name="degreeToFahrenheit" parameterOrder="degree"> <wsdl:input message="impl:degreeToFahrenheitRequest" name="degreeToFahrenheitRequest"/> <wsdl:output message="impl:degreeToFahrenheitResponse" name="degreeToFahrenheitResponse"/> </wsdl:operation> <wsdl:operation name="Notify"> <wsdl:input name="Notify" message="wsntw:Notify"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="tempSoapBinding" type="impl:TempConv"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="main"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="mainRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:temp" use="encoded"/> </wsdl:input> <wsdl:output name="mainResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:temp" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="degreeToFahrenheit"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="degreeToFahrenheitRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:temp" use="encoded"/> </wsdl:input> <wsdl:output name="degreeToFahrenheitResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:temp" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="Notify"> <soap:operation style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> </wsdl:operation> </wsdl:binding> <wsdl:service name="TempConvService"> <wsdl:port binding="impl:tempSoapBinding" name="temp"> <wsdlsoap:address location="http://sacpu01-xp:8080/axis/services/temp"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
