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 Canham Michael <Mi...@nrme.qld.gov.au> on 2004/09/09 05:51:09 UTC

Problems generating Document / Literal wsdl using Java2Wsdl


> I have successfully created a number of rpc/encoded web services using Axis 1.1 
> 
> I need to provide these services as document/literal web services.
> 
> I have loaded axis 1.2beta 
> 
> However when I run the wsdl2Java generator I get the following error :
> 
> faultString: Please register a typemapping/beanmapping for 'wd.common.access.ExternAccess'
> 
> 
> I have tried to do this, from following suggestions from theis mail list but nothing seems to alter this output ..............
> 
> 
> I am using Eclipse (and it is interacting with Tomcat 5.0) ..............
> 
> 
> I running the java2wsdl tool from a windows batch file :
> 
> java -classpath .;D:\Qmdb\WEB-INF\lib\axis.jar;D:\Qmdb\WEB-INF\classes\;D:\Qmdb\WEB-INF\lib\commons-logging.jar;D:\Qmdb\WEB-INF\lib\commons-discovery.jar;D:\Qmdb\WEB-INF\lib\wsdl4j.jar;D:\Qmdb\WEB-INF\lib\jaxrpc.jar;D:\Qmdb\WEB-INF\lib\saaj.jar;D:\Qmdb\WEB-INF\lib\wdInf.jar  org.apache.axis.wsdl.Java2WSDL -y DOCUMENT -u LITERAL -o clClient.wsdl  -l"http://localhost:8080/Qmdb/services/ClClient" -n  "urn:Qmdb" -p"wd.cl.client.ws" "urn:Qmdb" wd.cl.client.ws.ClClientWS
> 
> The wsdd file is :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>  <globalConfiguration>
>   <parameter name="adminPassword" value="admin"/>
>   <parameter name="attachments.Directory" value="D:\Qmdb\WEB-INF\attachments"/>
>   <parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
>   <parameter name="sendXsiTypes" value="true"/>
>   <parameter name="sendMultiRefs" value="true"/>
>   <parameter name="sendXMLDeclaration" value="true"/>
>   <parameter name="axis.sendMinimizedElements" value="true"/>
>   <requestFlow>
>    <handler type="java:org.apache.axis.handlers.JWSHandler">
>     <parameter name="scope" value="session"/>
>    </handler>
>    <handler type="java:org.apache.axis.handlers.JWSHandler">
>     <parameter name="scope" value="request"/>
>     <parameter name="extension" value=".jwr"/>
>    </handler>
>   </requestFlow>
>  </globalConfiguration>
>  <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
>  <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
>  <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
>  
>  <service name="AdminService" provider="java:MSG">
>   <parameter name="allowedMethods" value="AdminService"/>
>   <parameter name="enableRemoteAdmin" value="false"/>
>   <parameter name="className" value="org.apache.axis.utils.Admin"/>
>   <namespace>http://xml.apache.org/axis/wsdd/</namespace>
>  </service>
>  <service name="ClClient" provider="java:RPC">
>   <parameter name="allowedMethods" value="*"/>
>   <parameter name="wsdlPortType" value="ClClientWS"/>
>   <parameter name="scope" value="Session"/>
>   <parameter name="className" value="wd.cl.client.ws.ClClientSoapBindingSkeleton"/>
>   <parameter name="wsdlServicePort" value="ClClient"/>
>   <parameter name="wsdlTargetNamespace" value="urn:WdQmdb"/>
>   <parameter name="wsdlServiceElement" value="ClClientWSService"/>
>   <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns1:ClClientEntity" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:wd.cl.client.ClClientEntity" xmlns:ns1="http://client.cl.wd"/>
>   <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns2:ClClientPerson" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:wd.cl.client.ClClientPerson" xmlns:ns2="http://client.cl.wd"/>
>   <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns3:NotFoundException" serializer="org.apache.> axis.encoding.ser.BeanSerializerFactory" type="java:wd.common.exception.NotFoundException" xmlns:ns3="http://exception.common.wd"/>
>   <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns4:ExternAccess" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:wd.common.access.ExternAccess" xmlns:ns4="http://access.common.wd"/>
>   <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns5:ClClient" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:wd.cl.client.ClClient" xmlns:ns5="http://client.cl.wd"/>
>   <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns6:SysException" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:wd.common.exception.SysException" xmlns:ns6="http://exception.common.wd"/>
>   <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns7:BusException" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:wd.common.exception.BusException" xmlns:ns7="http://exception.common.wd"/>
>   <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns8:ClGroup" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:wd.cl.group.ClGroup" xmlns:ns8="http://group.cl.wd"/>
>  </service>
>  <service name="Version" provider="java:RPC">
>   <parameter name="allowedMethods" value="getVersion"/>
>   <parameter name="className" value="org.apache.axis.Version"/>
>  </service>
>  <transport name="http">
>   <requestFlow>
>    <handler type="URLMapper"/>
>    <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
>   </requestFlow>
>  </transport>
>  <transport name="local">
>   <responseFlow>
>    <handler type="LocalResponder"/>
>   </responseFlow>
>  </transport>
> </deployment>
> 
> 
> 
> I am relatively new to this area of J2EE, can someone please guide me as to what I should be doing ???????
> 
> Am i right in assuming that the    <service name="ClClient" provider="java:RPC">  service is from when I generated this service as rpc / encoded ??????
> 
> Many Thanks,
> 
> Mike Canham.
> 
> 
> 
> 


************************************************************************
The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.
Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.  
If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.  
************************************************************************


Re: server-config.wsdd

Posted by Mahen Perera <ma...@gmail.com>.
Hi Chris,,

There is no problem, u can add a request flow, response flow inside  a
service tag. Then the content in the request flow/response flow will
be executed only when a request come for the containing service.

Just add the request flow inside the service tag in the
server-config.wsdd file and then restart the server, it will work.

Even when u deploy the service using AdminClient. The same thing
happens. Internally, the engine will add the necesssary things from
the deploy.wsdd to the
server-config.wsdd. But the only thing is then, u dont have to restart
the server since the engine while writing to the server-config.wsdd
file, will have a refernce to the service deployed in memory.


Mahen

On Thu, 9 Sep 2004 14:03:37 -0700 (PDT), Christian Villoslada
<cv...@yahoo.com> wrote:
> It seems that the only way I can insert a
> <requestFlow> through the server-config.wsdd is
> directly inside of the <deployment> tag.
> 
> I'd like to insert a <requestFlow> tag inside of one
> of my <service> tags.
> 
> Is there any way I can do this?
> 
> It seems that if I insert a <requestFlow> inside of a
> <service> tag then Axis does not recognize it.  But if
> I deploy my web service on the command line (after i
> start my server) by invoking AxisServlet it seems that
> Axis does recognize my <requestFlow> inside of a
> <service> tag.
> 
> Thank you in advance for any help.
> Chris
> 
> 
> _______________________________
> Do you Yahoo!?
> Express yourself with Y! Messenger! Free. Download now.
> http://messenger.yahoo.com
>

server-config.wsdd

Posted by Christian Villoslada <cv...@yahoo.com>.
It seems that the only way I can insert a
<requestFlow> through the server-config.wsdd is
directly inside of the <deployment> tag.

I'd like to insert a <requestFlow> tag inside of one
of my <service> tags.

Is there any way I can do this?

It seems that if I insert a <requestFlow> inside of a
<service> tag then Axis does not recognize it.  But if
I deploy my web service on the command line (after i
start my server) by invoking AxisServlet it seems that
Axis does recognize my <requestFlow> inside of a
<service> tag.

Thank you in advance for any help.
Chris


		
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com