views:

419

answers:

1
A: 

First ensure that the value of the name attribute is {NAMESPACE}PORT_NAME where NAMESPACE is your namespace URI and PORT_NAME is the name of your WSDL port. Without seeing your WSDL, I don't know if you named your WSDL port "port" or if you are just giving a sanitized example.

For example, my WSDL namespace is "http://example.com/services" and the name of my WSDL port element is "myPort", the Spring configuration would look like this

<jaxws:endpoint name="{http://example.com/services}myPort" >
  ...

See "CreatedFromAPI" attribute description in CXF docs

If that doesn't solve your problem, try looking at the wsdl_first example code, upgrading your CXF version, and/or posting your question with test code demonstrating your issue to the CXF user list.

DavidValeri
Thank you for your response. :)<quote>Without seeing your WSDL, I don't know if you named your WSDL port "port" or if you are just giving a sanitized example</quote>My bad. I had sanitized the name, but forgot to add "my" as a prefix to make it "myPort".I have given it exactly as you have listed it. However I am using version 2.1.3. I shall check if I can use a newer version and also study the example to see if it will help me understand the problem.
SGB