Hi Julio,
That is very odd. The message appears OK... What are you using for a Client? Also could you maybe send along the code/xml you use to register the service?
Thanks,
- Dan

[EMAIL PROTECTED] wrote:

Hi –

I have a web service interface that uses JSR 181 annotations and is implemented by a Spring bean, and XFire keeps calling my service implementation methods with a null object. I’m monitoring the TCP connection, and I can see the SOAP messages being sent to XFire, so I know that there should be some data.

I've set up Xfire to use the spring dispatcher servlet with the Jrs181HandlerMapping, and here are my service interface and impl...

*Service interface *

@WebService( name="Profile",

serviceName="ProfileService",

portName="profileServe",

targetNamespace="http://service.wellsfargo.com/provider/cvs/profile/service"; )

@SOAPBinding( style=SOAPBinding.Style.DOCUMENT,

use=SOAPBinding.Use.LITERAL,

parameterStyle=SOAPBinding.ParameterStyle.WRAPPED )

public interface ProfileService extends Remote

{

/**

*

*

* @param request

* request object containig the WF context and profile object for submission

* @return

* response object containing the result of the submit request

*/

@WebMethod( operationName="submit" )

@WebResult( name="submitProfileResponse" )

public SubmitProfileResponse submit( @WebParam( name="submitProfileRequest" ) SubmitProfileRequest request )

throws RemoteException;

} // ProfileService


*Service implementation*

@WebService( endpointInterface="cv.profile.service.ProfileService",

serviceName="ProfileService")

public class ProfileServiceImpl

implements ProfileService, ApplicationContextAware

{

...

public SubmitProfileResponse submit( SubmitProfileRequest request )

throws RemoteException

{

log.info( "HEY - I'm submitting a profile here...you know, I'm doing that thing" );

log.info( "Profile Request: {\n" + request.toString() + "\n}" );

SubmitProfileResponse response = new SubmitProfileResponse();

response.setIsValid( true );

response.setWfContext( request.getWfContext() );

return response;

}

} // ProfileServiceImpl


*SOAP Message*

*=====================================*

POST /xfire/services/ProfileService HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: ""

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire Client +http://xfire.codehaus.org)

Host: 127.0.0.1:8081

Expect: 100-continue

Content-Length: 2058

<?xml version='1.0' encoding='UTF-8'?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

<soap:Body>

<submit xmlns="http://service.wellsfargo.com/provider/cvs/profile/service";>

<submitProfileRequest xmlns:ns4="http://service.wellsfargo.com/provider/cvs/profile/"; xmlns:ns3="http://service.wellsfargo.com/provider/cvs/profile/messages/"; xmlns:ns2="http://service.wellsfargo.com/entity/message/2003/";>

<ns3:wfContext>

<ns2:messageId>XXXX-session-id-XXXX</ns2:messageId>

<ns2:creationTimestamp>2006-04-26T12:27:00</ns2:creationTimestamp>

<ns2:activitySourceId>YOMAMA</ns2:activitySourceId>

<ns2:originatorId>YOPAPA</ns2:originatorId>

</ns3:wfContext>

<ns3:profile>

<ns3:profileL3>

<ns4:customerID>12000xxxxx</ns4:customerID>

<ns4:parentId>12000xxxxx</ns4:parentId>

<accounts>

<ns4:account>

<ns4:accountUsage>CRE</ns4:accountUsage>

<ns4:number>0000011111</ns4:number>

<ns4:accountType>DDA</ns4:accountType>

</ns4:account>

</accounts>

</ns3:profileL3>

</ns3:profile>

<ns3:saveIfValid>true</ns3:saveIfValid>

<ns3:approverId>MISTRAJ</ns3:approverId>

</submitProfileRequest>

</submit>

</soap:Body>

</soap:Envelope>


Julio A. Mistral

/Cash Vault Systems/

/415.243.6087/

/This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation./




Julio A. Mistral

/Cash Vault Systems/

/415.243.6087/

/This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation./



--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog

Reply via email to