- JBOSS 4.0.2

I'm trying to write a WS server stub for a 3rd party web service provider :
http://ws.strikeiron.com/globalsmspro2_5?WSDL 

So, I have generated interfaces using wscompile (1.6 and 2.0) -import
(first I saw that complex IN types were unwrapped in the generated interface, 
which is not the case using BEA tools)

Then I have deployed the web service stub on JBOSS which generates the WSDD

Results :

1. WSDL summary:


  |   <types>
  |     <s:schema xmlns:s="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified" targetNamespace="http://www.strikeiron.com";>
  |       <s:element name="SendMessage">
  |         <s:complexType>
  |           <s:sequence>
  |             <s:element maxOccurs="1" minOccurs="0" name="ToNumber" 
type="s:string"/>
  |             <s:element maxOccurs="1" minOccurs="0" name="FromNumber" 
type="s:string"/>
  |             <s:element maxOccurs="1" minOccurs="0" name="FromName" 
type="s:string"/>
  |             <s:element maxOccurs="1" minOccurs="0" name="MessageText" 
type="s:string"/>
  |           </s:sequence>
  |         </s:complexType>
  | 
  | ...
  | 
  | <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; 
style="document"/>
  |     <operation name="SendMessage">
  | <soap:operation soapAction="http://www.strikeiron.com/SendMessage"; 
style="document"/>
  |     <input>
  | <soap:body use="literal"/>
  | <soap:header message="s0:LicenseInfoMessage" part="LicenseInfo" 
use="literal"/>
  | </input>
  |     <output>
  | <soap:body use="literal"/>
  | <soap:header message="s0:SendMessageResponseInfo" part="ResponseInfo" 
use="literal"/>
  | <soap:header message="s0:SubscriptionInfoMessage" part="SubscriptionInfo" 
use="literal"/>
  | </output>
  | </operation>

2. Java generated interfaces by wscompile

  
  | public ws.stub.strikeiron.SMSTextMessageTargetStatus sendMessage(
  | java.lang.String toNumber, 
  | java.lang.String fromNumber, 
  | java.lang.String fromName, 
  | java.lang.String messageText, 
  | LicenseInfo licenseInfo, 
  | ResponseInfoHolder responseInfo, 
  | SubscriptionInfoHolder subscriptionInfo
  | ) throws java.rmi.RemoteException;

3. WSDD generated file by JBOSS

  <operation name='sendMessage' qname='ns1:SendMessage' 
xmlns:ns1='http://www.strikeiron.com' >
  |     <parameter name='parameters' qname='ns1:SendMessageResponse' 
mode='INOUT' type='ns1:SendMessageResponse' 
xmlns:ns1='http://www.strikeiron.com' />
  |   </operation>
  | 
  | ...
  | 
  |   <typeMapping
  |     qname='ns1:SendMessage' xmlns:ns1='http://www.strikeiron.com'
  |     type='java:ws.stub.strikeiron.SendMessage'
  |     
serializer='org.jboss.webservice.encoding.ser.MetaDataBeanSerializerFactory'
  |     
deserializer='org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory'
  |     encodingStyle=''>
  |   <typeDesc>
  |     <elementDesc fieldName='toNumber' xmlName='ToNumber'/>
  |     <elementDesc fieldName='fromNumber' xmlName='FromNumber'/>
  |     <elementDesc fieldName='fromName' xmlName='FromName'/>
  |     <elementDesc fieldName='messageText' xmlName='MessageText'/>
  |     <elementOrder>
  |       <element name='toNumber'/>
  |       <element name='fromNumber'/>
  |       <element name='fromName'/>
  |       <element name='messageText'/>
  |     </elementOrder>
  |   </typeDesc>
  |   </typeMapping>
  | 
  |   <typeMapping
  |     qname='ns1:SendMessageResponse' xmlns:ns1='http://www.strikeiron.com'
  |     type='java:ws.stub.strikeiron.SendMessageResponse'
  |     
serializer='org.jboss.webservice.encoding.ser.MetaDataBeanSerializerFactory'
  |     
deserializer='org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory'
  |     encodingStyle=''>
  |   <typeDesc>
  |     <elementDesc fieldName='sendMessageResult' xmlName='SendMessageResult'/>
  |     <elementOrder>
  |       <element name='sendMessageResult'/>
  |     </elementOrder>
  |   </typeDesc>
  |   </typeMapping>
  | 
  | 

So as you can see, the WSDD generated, as I understand, does not map the 
operation with the good parameters (only SendMessageResponse is set)

So of course, when accessing the webservice, I've got an error : The 
OperationDesc for SendMessage was not synchronized to a method of ...


Is it a known WS/JBOSS bug fixed in 4.0.4 (as some other WS bugs) ???
What's wrong with this WDSL and JBOSS ? (As all the WSDL I have generated with 
wscompile work well in JBOSS)

Thanks !

shazz


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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to