The response from that web service in not valid according to the schema. The schema for the authenticateResponse element (see: https://stdemo.smartturn.com/occam/schema/authenticate.xsd) has a targetNamespace of: http://www.smartturn.com/services/OccamService/authenticate

However, the message puts that element in the http://client.ws.smartturn.cnx/ namespace. Since CXF (actually JAXB) is looking specifically from the {http://www.smartturn.com/services/OccamService/ authenticate}authenticateResponse element, it doesn't find it and returns null.

Dan



On Jul 10, 2008, at 2:09 PM, Zemian Deng wrote:

Sure Dan. Can you see this demo wsdl here:

https://stdemo.smartturn.com/occam/services/OccamService?wsdl

Thanks,
-Z

On Thu, Jul 10, 2008 at 1:42 PM, Daniel Kulp <[EMAIL PROTECTED]> wrote:

We'd need to see the wsdl and schema to see if that message really matches
what the wsdl/xsd says it should look like.

Dan



On Jul 10, 2008, at 1:19 PM, Zemian Deng wrote:

Hello list,

I have generated client sources using wsdl2java for a WS, and I can
send a request to service just fine. But when receiving a response
from a proxy client service method (the return type is String), I
always get null. I turned on the logging, and I can see a respond
payload did return a string, but no from my service method returned.
Any reason for this?

Here is a sample of response received:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";

xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"><soapenv:Body><authenticateResponse
xmlns="http://client.ws.smartturn.cnx/";><ns1:response

xmlns:ns1="http://www.smartturn.com/services/OccamService/authenticate ">authentication
-
success</ns1:response></authenticateResponse></soapenv:Body></ soapenv:Envelope>

I don't get "authentication - success", but a null instead. Can
someone help me?

Thanks,
--
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog








--
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to