Hi,
Right, I reproduce your problem when I disable my network connection.
I think I find the reason, the proxy you used for cxf se
CalculatorExt.java has a input para as type AddRequest.java, and
AddRequest.java has a field
javax.xml.ws.wsaddressing.W3CEndpointReference, when build servicemix
model from the proxy SEI, it will try to build schema from the
javax.xml.ws.wsaddressing.W3CEndpointReference, which as you see get
exception when your machine has no network access.
To avoid this, you can use the
org.apache.cxf.ws.addressing.EndpointReferenceType shipped with cxf, using
./wsdl2java -noAddressBinding calculatorExt.wsdl
can generate org.apache.cxf.ws.addressing.EndpointReferenceType instead
of javax.xml.ws.wsaddressing.W3CEndpointReference for your
auto-generated stuff.
You also need replace org.apache.cxf.ws.addressing.EndpointReferenceType
with javax.xml.ws.wsaddressing.W3CEndpointReference in your impl class
of cxfse su.
Regards
Freeman
Fullocto wrote:
Hi freeman,
I spent my day trying to debug/understand
And well I may have a clue, I think that it works on your computer that has
internet!
Mine has not accessed to internet...
The Xsd I import is the ws-addressing one, it is read by schemabuilder, and
I don't know when exactly (trying to figure it out), I think it may
recognize some "special" namespaces.
The point is that the schemaLocation (used in
schemabuilder.resolvexmlschema) becomes automatically
http://www.w3.org/2006/03/addressing/ws-addr.xsd, I launched a browser on an
online computer, and there is the XSD!
It should only point to my ws-addr local file :/