So, you think that namespace is the solution to the problem?
I am sure that you are wrong. I did try your suggestion but it did not work.
I made this change:
    @WebMethod(operationName="processSpamComplaints")
  |     
@WebResult(name="spamResult",targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0";)
  |     
@ResponseWrapper(localName="result",className="com.rsys.rsystools.ws.SpamResult",
  |     
targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0";)
  |     public SpamResult processSpamComplaints(
  | 
I did not create RequestWrapper because
a)I am not passing in an instance of class but just few strings.
b)passed in parameters are processed correctly.
So, when I redeployed my service generated wsdl looked like:
<definitions name="SpamComplaintWSService" 
targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0";>
  | ?
  |     <types>
  | ?
  |     <xs:schema 
targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0"; 
version="1.0">
  | <xs:element name="processSpamComplaints" type="tns:processSpamComplaints"/>
  | <xs:element name="result" type="tns:result"/>
  | ?
  |     <xs:complexType name="processSpamComplaints">
  | ?
  |     <xs:sequence>
  | <xs:element minOccurs="0" name="email" type="xs:string"/>
  | <xs:element minOccurs="0" name="fromAddress" type="xs:string"/>
  | <xs:element minOccurs="0" name="mailDate" type="xs:string"/>
  | <xs:element minOccurs="0" name="complaintDate" type="xs:string"/>
  | <xs:element minOccurs="0" name="mailbox" type="xs:string"/>
  | <xs:element minOccurs="0" name="complainer" type="xs:string"/>
  | <xs:element minOccurs="0" name="xRext" type="xs:string"/>
  | <xs:element minOccurs="0" name="accountName" type="xs:string"/>
  | </xs:sequence>
  | </xs:complexType>
  | ?
  |     <xs:complexType name="result">
  | ?
  |     <xs:sequence>
  | <xs:element form="qualified" minOccurs="0" name="spamResult" 
type="tns:result"/>
  | </xs:sequence>
  | </xs:complexType>
  | </xs:schema>
  | </types>
  | ?
  |     <message name="SpamComplaintWS_processSpamComplaints">
  | <part element="tns:processSpamComplaints" name="processSpamComplaints"/>
  | </message>
  | ?
  |     <message name="SpamComplaintWS_processSpamComplaintsResponse">
  | <part element="tns:result" name="result"/>
  | </message>
  | ?
  |     <portType name="SpamComplaintWS">
  | ?
  |     <operation name="processSpamComplaints" 
parameterOrder="processSpamComplaints">
  | <input message="tns:SpamComplaintWS_processSpamComplaints"/>
  | <output message="tns:SpamComplaintWS_processSpamComplaintsResponse"/>
  | </operation>
  | </portType>
  | ?
  |     <binding name="SpamComplaintWSBinding" type="tns:SpamComplaintWS">
  | <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
  | ?
  |     <operation name="processSpamComplaints">
  | <soap:operation soapAction=""/>
  | ?
  |     <input>
  | <soap:body use="literal"/>
  | </input>
  | ?
  |     <output>
  | <soap:body use="literal"/>
  | </output>
  | </operation>
  | </binding>
  | ?
  |     <service name="SpamComplaintWSService">
  | ?
  |     <port binding="tns:SpamComplaintWSBinding" name="SpamComplaintWSPort">
  | <soap:address location="http://127.0.0.1:80/rsystools/ws/SpamComplaintWS"/>
  | </port>
  | </service>
  | </definitions>
and when I called the web service, the result was exactly like in my original 
post.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093745
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to