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 Alessandro Leonardi <al...@telecomitalia.it> on 2004/11/09 12:24:59 UTC

axis problems - style="document"

Hi,

I've a problem to publishing a service with axis, I build it like axis example and all is OK, I can to use the server like a simple client....beautiful....
but now I should change the style: 
tipically using the usual deploy procedure 

( java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -S true  -Nurn:WSG_Receiver PWMvsWSG.WSG_Receiver  wp_receiver.wsdl ) 

I've a wsdd like this:

 <service name="WSG_Receiver" provider="java:RPC" style="rpc" use="literal">
      <parameter name="wsdlTargetNamespace" value="urn:WSG_Receiver"/>
      <parameter name="wsdlServiceElement" value="PWMfromWSGService"/>
      <parameter name="wsdlServicePort" value="WSG_Receiver"/>
      <parameter name="className" value="PWMvsWSG.WSG_Receiver.WSG_ReceiverSoapBindingSkeleton"/>
      <parameter name="wsdlPortType" value="PWMfromWSG"/>
      <parameter name="allowedMethods" value="*"/>
      <parameter name="scope" value="Session"/>
....
....
 I need to change the style from RPC to DOCUMENT, I tried to modify the "wsdd" file as below:

 <service name="WSG_Receiver" provider="java:DOCUMENT" style="document" use="literal">
      <parameter name="wsdlTargetNamespace" value="urn:WSG_Receiver"/>
      <parameter name="wsdlServiceElement" value="PWMfromWSGService"/>
      <parameter name="wsdlServicePort" value="WSG_Receiver"/>
      <parameter name="className" value="PWMvsWSG.WSG_Receiver.WSG_ReceiverSoapBindingSkeleton"/>
      <parameter name="wsdlPortType" value="PWMfromWSG"/>
      <parameter name="allowedMethods" value="*"/>
      <parameter name="scope" value="Session"/>
....
....

than I published this interface, but at this time when I try to connect to it using a browser ( to have the "wsdl" ),
it returns me this message:

Fault - ; nested exception is: 
org.apache.axis.ConfigurationException: org.apache.axis.deployment.wsdd.WSDDException: No provider type matches QName &apos;{http://xml.apache.org/axis/wsdd/providers/java}DOCUMENT&apos;
org.apache.axis.deployment.wsdd.WSDDException: No provider type matches QName &apos;{http://xml.apache.org/axis/wsdd/providers/java}DOCUMENT&apos;
at org.apache.axis.deployment.wsdd.WSDDProvider.getInstance(WSDDProvider.java:205)
at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:446)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:310)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:296)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:485)
at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:261)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:274)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
...
...

All exception list is atacched.

I should to modify my java interface before the deploy?

Have You some idea?

Tanks!

Alessandro

--------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to webmaster@telecomitalia.it.

        Thank you

                                        www.telecomitalia.it

--------------------------------------------------------------------

how to set cookie in version 1.1

Posted by Daniel Amadei <da...@yahoo.com.br>.
Hi All,
 
In version 1.0 we were using call.setScopedProperty(HTTPConstants.COOKIE, "cookies");
 
Migrating to version 1.1 it does not set the cookie anymore using this method. Anybody know how can I set cookies in this version of Axis?
 
Daniel

		
---------------------------------
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!

Re: axis problems - style="document"

Posted by Enric Jaen <en...@nmg.upc.es>.
It does not exist such a java:DOCUMENT provider. Use java:RPC with 
style="document".
-Enric


On Tue, 9 Nov 2004, Alessandro Leonardi wrote:

> Hi,
> 
> I've a problem to publishing a service with axis, I build it like axis example and all is OK, I can to use the server like a simple client....beautiful....
> but now I should change the style: 
> tipically using the usual deploy procedure 
> 
> ( java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -S true  -Nurn:WSG_Receiver PWMvsWSG.WSG_Receiver  wp_receiver.wsdl ) 
> 
> I've a wsdd like this:
> 
>  <service name="WSG_Receiver" provider="java:RPC" style="rpc" use="literal">
>       <parameter name="wsdlTargetNamespace" value="urn:WSG_Receiver"/>
>       <parameter name="wsdlServiceElement" value="PWMfromWSGService"/>
>       <parameter name="wsdlServicePort" value="WSG_Receiver"/>
>       <parameter name="className" value="PWMvsWSG.WSG_Receiver.WSG_ReceiverSoapBindingSkeleton"/>
>       <parameter name="wsdlPortType" value="PWMfromWSG"/>
>       <parameter name="allowedMethods" value="*"/>
>       <parameter name="scope" value="Session"/>
> ....
> ....
>  I need to change the style from RPC to DOCUMENT, I tried to modify the "wsdd" file as below:
> 
>  <service name="WSG_Receiver" provider="java:DOCUMENT" style="document" use="literal">
>       <parameter name="wsdlTargetNamespace" value="urn:WSG_Receiver"/>
>       <parameter name="wsdlServiceElement" value="PWMfromWSGService"/>
>       <parameter name="wsdlServicePort" value="WSG_Receiver"/>
>       <parameter name="className" value="PWMvsWSG.WSG_Receiver.WSG_ReceiverSoapBindingSkeleton"/>
>       <parameter name="wsdlPortType" value="PWMfromWSG"/>
>       <parameter name="allowedMethods" value="*"/>
>       <parameter name="scope" value="Session"/>
> ....
> ....
> 
> than I published this interface, but at this time when I try to connect to it using a browser ( to have the "wsdl" ),
> it returns me this message:
> 
> Fault - ; nested exception is: 
> org.apache.axis.ConfigurationException: org.apache.axis.deployment.wsdd.WSDDException: No provider type matches QName &apos;{http://xml.apache.org/axis/wsdd/providers/java}DOCUMENT&apos;
> org.apache.axis.deployment.wsdd.WSDDException: No provider type matches QName &apos;{http://xml.apache.org/axis/wsdd/providers/java}DOCUMENT&apos;
> at org.apache.axis.deployment.wsdd.WSDDProvider.getInstance(WSDDProvider.java:205)
> at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:446)
> at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:310)
> at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:296)
> at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:485)
> at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:261)
> at org.apache.axis.AxisEngine.getService(AxisEngine.java:274)
> at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:309)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:534)
> ...
> ...
> 
> All exception list is atacched.
> 
> I should to modify my java interface before the deploy?
> 
> Have You some idea?
> 
> Tanks!
> 
> Alessandro
> 
> --------------------------------------------------------------------
> 
> CONFIDENTIALITY NOTICE
> 
> This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to webmaster@telecomitalia.it.
> 
>         Thank you
> 
>                                         www.telecomitalia.it
> 
> --------------------------------------------------------------------


RE: axis problems - style="document"

Posted by Greg Michalopoulos <gm...@d2hawkeye.com>.
Provider still needs to be java:RPC.  WSDD should look like this for
doc/literlal:
 
...
 <service name="WSG_Receiver" provider="java:RPC" style="document"
use="literal">
...
 
WSDL should be similar to this...
 
 <wsdl:binding name="WSG_ReceiverServiceSoapBinding"
type="impl:WSG_Receiver">
  <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/
<http://schemas.xmlsoap.org/soap/http> >
  <wsdl:operation name="getWSG_Receiver">
   <wsdlsoap:operation soapAction=""/>
   <wsdl:input name="getWSG_ReceiverRequest">
    <wsdlsoap:body namespace="http://xml.apache.org/axis/wsdd/"
use="literal"/>
   </wsdl:input> 
   <wsdl:output name="getWSG_ReceiverResponse">
    <wsdlsoap:body namespace="http://xml.apache.org/axis/wsdd/"
use="literal"/>
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>

Also make sure you are using latest Axis 1.2 RC 1, since Axis 1.1 and
previous have poor doc/literal support.
 
Greg
 
  _____  

From: Alessandro Leonardi [mailto:alessandro1.leonardi@telecomitalia.it] 
Sent: Tuesday, November 09, 2004 6:25 AM
To: axis-user@ws.apache.org
Subject: axis problems - style="document"


Hi,
 
I've a problem to publishing a service with axis, I build it like axis
example and all is OK, I can to use the server like a simple
client....beautiful....
but now I should change the style: 
tipically using the usual deploy procedure 
 
( java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -S true
-Nurn:WSG_Receiver PWMvsWSG.WSG_Receiver  wp_receiver.wsdl ) 
 
I've a wsdd like this:
 
 <service name="WSG_Receiver" provider="java:RPC" style="rpc" use="literal">
      <parameter name="wsdlTargetNamespace" value="urn:WSG_Receiver"/>
      <parameter name="wsdlServiceElement" value="PWMfromWSGService"/>
      <parameter name="wsdlServicePort" value="WSG_Receiver"/>
      <parameter name="className"
value="PWMvsWSG.WSG_Receiver.WSG_ReceiverSoapBindingSkeleton"/>
      <parameter name="wsdlPortType" value="PWMfromWSG"/>
      <parameter name="allowedMethods" value="*"/>
      <parameter name="scope" value="Session"/>
....
....
 I need to change the style from RPC to DOCUMENT, I tried to modify the
"wsdd" file as below:
 
 <service name="WSG_Receiver" provider="java:DOCUMENT" style="document"
use="literal">
      <parameter name="wsdlTargetNamespace" value="urn:WSG_Receiver"/>
      <parameter name="wsdlServiceElement" value="PWMfromWSGService"/>
      <parameter name="wsdlServicePort" value="WSG_Receiver"/>
      <parameter name="className"
value="PWMvsWSG.WSG_Receiver.WSG_ReceiverSoapBindingSkeleton"/>
      <parameter name="wsdlPortType" value="PWMfromWSG"/>
      <parameter name="allowedMethods" value="*"/>
      <parameter name="scope" value="Session"/>
....
....
 
than I published this interface, but at this time when I try to connect to
it using a browser ( to have the "wsdl" ),
it returns me this message:
 
Fault - ; nested exception is: 
org.apache.axis.ConfigurationException:
org.apache.axis.deployment.wsdd.WSDDException: No provider type matches
QName &apos;{http://xml.apache.org/axis/wsdd/providers/java}DOCUMENT&apos;
org.apache.axis.deployment.wsdd.WSDDException: No provider type matches
QName &apos;{http://xml.apache.org/axis/wsdd/providers/java}DOCUMENT&apos;
at
org.apache.axis.deployment.wsdd.WSDDProvider.getInstance(WSDDProvider.java:2
05)
at
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java
:446)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
ableItem.java:310)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
eItem.java:296)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.jav
a:485)
at
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:261)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:274)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)
...
...
 
All exception list is atacched.
 
I should to modify my java interface before the deploy?
 
Have You some idea?
 
Tanks!
 
Alessandro
 
 
--------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to  <ma...@telecomitalia.it> webmaster@telecomitalia.it.
        Thank you
                                         <http://www.telecomitalia.it>
www.telecomitalia.it
--------------------------------------------------------------------