Hi,

Looked your service implementation code
it's
public void saveEDI894(@WebParam(
        name = "Edi894UCSDexNexDocument",
targetNamespace = "http://www.company.com/services/domain/receiving ") //this is mismatch with your wsdl
    Edi894UCSDexNexDocument edi894UCSDexNexDocument)
    {
        // edi894UCSDexNexDocument is null here
    }

so the expected namespace here for Edi894UCSDexNexDocument IS "http://www.company.com/services/domain/receiving ". cxf will build servicemodel from this code so it expect a namespace same as in your code here.
How you write this service implementation code?
Seems you write it manually, right? You'd better use wsdl first approach, which means use wsdl2java tool to generate code stub from your wsdl file, then you can modify the code to add your business logic, this can save you a lot of time to take care of the annotation.

Freeman
On 2011-4-13, at 上午2:15, objectorange wrote:

When stepping through the code, I've set validation to true, and receive the
following UnmarshalException:

javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'rd:Edi894UCSDexNexDocument'. One of
'{"http://www.company.com/services/domain/ receiving":Edi894UCSDexNexDocument}'
is expected.]

If you look in my message, rd was set to
http://www.company.com/domain/receiving (notice the services package was
dropped). Why would the namespace be dropped? Can we not use imported
schemas in our WSDLs with different namespaces?

Brian

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/CXF-SE-Null-Payload-tp4298642p4298852.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference








Reply via email to