Hi Stephan,

Thanks for that, yes it seems quite difficult to get much help with this.

I had already found that i needed to include the wsi option with the wscompile 
to generate a operation with a single parameter. I haven't got as far as 
writing the actual implementation, my first step was just to get this to deploy 
and be visible from the JBoss web service view.

My war deploys succesfully and includes the web.xml, webservices.xml and 
jaxrpc-mapping.xml together with all the classes.

I'm not sure I understood step 3 about the custom mappings, is this the 
ws4ee-deployment.xml file? 

Unfortunately I am using a supplied wsdl file which seems to be rather 
complicated, but as far as I can tell I also have an operation, that takes one 
IN parameter and returns a parameter as per your step 4.  Looking at the wsdd, 
this has it as an INOUT. So presumably this is why it is giving an Axis debug 
message in the log about not being able to convert the parameter as it's trying 
to convert my input parameter to my output parameter. What did you do to solve 
this particular problem.

This is a fragment of my wsdl

  
  |  <s:element name="GetStatus">
  |      <s:complexType>
  |           <s:attribute name="LocaleID" type="s:string" />
  |           <s:attribute name="ClientRequestHandle" type="s:string" />
  |       </s:complexType>
  |  </s:element>
  |  <s:element name="GetStatusResponse">
  |       <s:complexType>
  |           <s:sequence>
  |             <s:element minOccurs="0" maxOccurs="1" name="GetStatusResult" 
type="s0:ReplyBase" />
  |             <s:element minOccurs="0" maxOccurs="1" name="Status" 
type="s0:ServerStatus" />
  |           </s:sequence>
  |       </s:complexType>
  |  </s:element>
  | 
  |   <message name="GetStatusSoapIn">
  |     <part name="parameters" element="s0:GetStatus" />
  |   </message>
  |   <message name="GetStatusSoapOut">
  |     <part name="parameters" element="s0:GetStatusResponse" />
  |   </message>
  | 
  |   <portType name="Service">
  |     <operation name="GetStatus">
  |       <input message="s0:GetStatusSoapIn" />
  |       <output message="s0:GetStatusSoapOut" />
  |     </operation>
  | 
  |   <binding name="Service" type="s0:Service">
  |     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; 
style="document" />
  |     <operation name="GetStatus">
  |       <soap:operation 
soapAction="http://opcfoundation.org/webservices/XMLDA/1.0/GetStatus"; 
style="document" />
  |       <input>
  |         <soap:body use="literal" />
  |       </input>
  |       <output>
  |         <soap:body use="literal" />
  |       </output>
  |     </operation>
  | 
  | 

This is a fragment of the corresponding wsdd

  |   <operation name='getStatus' qname='ns1:GetStatus' 
xmlns:ns1='http://opcfoundation.org/webservices/XMLDA/1.0/' >
  |     <parameter name='parameters' qname='ns1:GetStatusResponse' mode='INOUT' 
type='ns1:GetStatusResponse' xmlns:ns1='http://opcfounda
  | tion.org/webservices/XMLDA/1.0/' />
  |   </operation>
  | 
  |   <typeMapping
  |     qname='ns1:GetStatus' 
xmlns:ns1='http://opcfoundation.org/webservices/XMLDA/1.0/'
  |     type='java:org.opcfoundation.webservices.XMLDA._1_0.GetStatus'
  |     
serializer='org.jboss.webservice.encoding.ser.MetaDataBeanSerializerFactory'
  |     
deserializer='org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory'
  |     encodingStyle=''>
  |   <typeDesc>
  |     <elementDesc fieldName='localeID' xmlName='LocaleID' asAttr='true'/>
  |     <elementDesc fieldName='clientRequestHandle' 
xmlName='ClientRequestHandle' asAttr='true'/>
  |   </typeDesc>
  |   </typeMapping>
  | 
  |   <typeMapping
  |     qname='ns1:GetStatusResponse' 
xmlns:ns1='http://opcfoundation.org/webservices/XMLDA/1.0/'
  |     type='java:org.opcfoundation.webservices.XMLDA._1_0.GetStatusResponse'
  |     
serializer='org.jboss.webservice.encoding.ser.MetaDataBeanSerializerFactory'
  |     
deserializer='org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory'
  |     encodingStyle=''>
  |   <typeDesc>
  |     <elementDesc fieldName='getStatusResult' xmlName='GetStatusResult'/>
  |     <elementDesc fieldName='status' xmlName='Status'/>
  |     <elementOrder>      <element name='getStatusResult'/>
  |       <element name='status'/>
  |     </elementOrder>  </typeDesc>
  |   </typeMapping>
  | 
  | 

This is a fragment of the generated SEI

  | public interface Service extends java.rmi.Remote {
  |     public org.opcfoundation.webservices.XMLDA._1_0.GetStatusResponse 
getStatus(org.opcfoundation.webservices.XMLDA._1_0.GetStatus p
  | arameters) throws
  |          java.rmi.RemoteException;
  | 

Finally, the Axis debug

  | 2005-02-03 12:01:53,679 DEBUG [org.apache.axis.description.ServiceDesc] 
Enter: syncOperationToClass org.apache.axis.description.Oper
  | ationDesc
  | name:        getStatus
  | returnQName: null
  | returnType:  null
  | returnClass: null
  | elementQName:{http://opcfoundation.org/webservices/XMLDA/1.0/}GetStatus
  | soapAction:  null
  | style:       document
  | use:         literal
  | numInParams: 1
  | method:null
  |  ParameterDesc[0]:
  |   name:       
{http://opcfoundation.org/webservices/XMLDA/1.0/}GetStatusResponse
  |   typeEntry:  null
  |   mode:       INOUT
  |   isReturn:   false
  |   typeQName:  
{http://opcfoundation.org/webservices/XMLDA/1.0/}GetStatusResponse
  |   javaType:   null
  |   inHeader:   false
  |   outHeader:  false
  | 
  | 
  | 2005-02-03 12:01:53,680 DEBUG [org.apache.axis.description.ServiceDesc] 
Sync method: public abstract org.opcfoundation.webservices.X
  | MLDA._1_0.GetStatusResponse 
org.opcfoundation.webservices.XMLDA._1_0.Service.getStatus(org.opcfoundation.webservices.XMLDA._1_0.GetS
  | tatus) throws java.rmi.RemoteException
  | 2005-02-03 12:01:53,680 DEBUG [org.apache.axis.description.ServiceDesc] 
Converting param: class org.opcfoundation.webservices.XMLDA.
  | _1_0.GetStatus
  | 2005-02-03 12:01:53,680 DEBUG [org.apache.axis.description.ServiceDesc] 
Setting param class from TypeQName: class org.opcfoundation.
  | webservices.XMLDA._1_0.GetStatusResponse
  | 2005-02-03 12:01:53,734 DEBUG [org.apache.axis.utils.JavaUtils] Not 
convertible: [src=class org.opcfoundation.webservices.XMLDA._1_0
  | .GetStatusResponse,dest=class 
org.opcfoundation.webservices.XMLDA._1_0.GetStatus]
  | 2005-02-03 12:01:53,734 DEBUG [org.apache.axis.description.ServiceDesc] 
Param class is not convertible: [param=class org.opcfoundati
  | on.webservices.XMLDA._1_0.GetStatusResponse,actual=class 
org.opcfoundation.webservices.XMLDA._1_0.GetStatus]
  | 2005-02-03 12:01:53,734 FATAL [org.apache.axis.InternalException] Exception:
  | java.lang.Exception: The OperationDesc for getStatus was not synchronized 
to a method of org.opcfoundation.webservices.XMLDA._1_0.Se
  | rvice.
  | 

This would appear to be similair to the problem you mentioned in step 4, with 
the INOUT instead of an IN and a return.

Thanks for any help you can give me,

Andy

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865165#3865165

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865165


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to