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 Frederic Bertin <fr...@anyware-tech.com> on 2003/02/13 12:03:46 UTC

give URN to a service in a WSDD file

Hi all,

I'm trying to call a web service deployed using this WSDD file:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 <service name="Cocoon-JVM-Memory" provider="java:RPC">
  <parameter name="className" 
value="org.apache.cocoon.webservices.memory.Memory"/>
  <parameter name="allowedMethods" value="getFreeMemory getTotalMemory 
invokeGC"/>
 </service>

</deployment>

But I don't manage to call it using SOAP XSP logicsheet syntax:

<soap:call method="Cocoon-JVM-Memory" url="rpcrouter">
     <getTotalMemory>
           <soap:enc/>
     </getTotalMemory>
</soap:call>

The service is not found by the AXIS engine. I guess it's a problem of 
URN. Indeed I don't know how to specify the URN of a service using WSDD 
files. Can anyone help me?

Thanks.



Re: give URN to a service in a WSDD file

Posted by Frederic Bertin <fr...@anyware-tech.com>.
ahhhhhhhhhhhhhhh, Vlad, you're the best !!!!

I spent 2 days trying to make this work!!
The solution was using <namespace>urn:toto</namespace>.

However, do you know where to find a complete doc about WSDD? Even the 
AXIS site doesn't supply it!
We're compelled to look for examples all over the net.

Thanks.

Fred


Vlad Umansky wrote:

>after
><service name="Cocoon-JVM-Memory" provider="java:RPC">
>
>try adding
><namespace>your_own_unique_identifier</namespace>
>
>or you can also try adding
>
><parameter name="wsdlTargetNamespace" value="your_own_unique_identifier"/>
>
>Not sure what's the difference between these two, but I've seen them both
>being used to declare a specific namespace for your service.
>
>Vlad
>
>-----Original Message-----
>From: Frederic Bertin [mailto:frederic@anyware-tech.com]
>Sent: Thursday, February 13, 2003 6:04 AM
>To: axis-user@ws.apache.org
>Subject: give URN to a service in a WSDD file
>
>
>Hi all,
>
>I'm trying to call a web service deployed using this WSDD file:
>
><deployment xmlns="http://xml.apache.org/axis/wsdd/"
>            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
> <service name="Cocoon-JVM-Memory" provider="java:RPC">
>  <parameter name="className"
>value="org.apache.cocoon.webservices.memory.Memory"/>
>  <parameter name="allowedMethods" value="getFreeMemory getTotalMemory
>invokeGC"/>
> </service>
>
></deployment>
>
>But I don't manage to call it using SOAP XSP logicsheet syntax:
>
><soap:call method="Cocoon-JVM-Memory" url="rpcrouter">
>     <getTotalMemory>
>           <soap:enc/>
>     </getTotalMemory>
></soap:call>
>
>The service is not found by the AXIS engine. I guess it's a problem of
>URN. Indeed I don't know how to specify the URN of a service using WSDD
>files. Can anyone help me?
>
>Thanks.
>
>
>  
>



RE: give URN to a service in a WSDD file

Posted by Vlad Umansky <vu...@adjoin.com>.
after
<service name="Cocoon-JVM-Memory" provider="java:RPC">

try adding
<namespace>your_own_unique_identifier</namespace>

or you can also try adding

<parameter name="wsdlTargetNamespace" value="your_own_unique_identifier"/>

Not sure what's the difference between these two, but I've seen them both
being used to declare a specific namespace for your service.

Vlad

-----Original Message-----
From: Frederic Bertin [mailto:frederic@anyware-tech.com]
Sent: Thursday, February 13, 2003 6:04 AM
To: axis-user@ws.apache.org
Subject: give URN to a service in a WSDD file


Hi all,

I'm trying to call a web service deployed using this WSDD file:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 <service name="Cocoon-JVM-Memory" provider="java:RPC">
  <parameter name="className"
value="org.apache.cocoon.webservices.memory.Memory"/>
  <parameter name="allowedMethods" value="getFreeMemory getTotalMemory
invokeGC"/>
 </service>

</deployment>

But I don't manage to call it using SOAP XSP logicsheet syntax:

<soap:call method="Cocoon-JVM-Memory" url="rpcrouter">
     <getTotalMemory>
           <soap:enc/>
     </getTotalMemory>
</soap:call>

The service is not found by the AXIS engine. I guess it's a problem of
URN. Indeed I don't know how to specify the URN of a service using WSDD
files. Can anyone help me?

Thanks.