This discussion is archived
1 Reply Latest reply: Oct 1, 2012 9:17 AM by user696 RSS

WSDL generator for web-service behind a router/proxy

lunicon Newbie
Currently Being Moderated
I create jax-ws service and deploy it on local network computer (LS:port1)
and set up direct port forward from computer in DMZ ES:port2 to LS:port1.

When I browse for http://ES:port2/sevice/serviceport?wsdl it generate invalid schemaLocation
<types>
<xsd:schema>
<xsd:import schemaLocation="http://LS:port1/sevice/serviceport?xsd=1"/>
</xsd:schema>
...
<service name="hello">
<port name="hello" binding="tns:helloBinding">
<soap:address location="http://LS:port1/sevice/serviceport"/>
</port>
</service>
</types>
I thought the links are generated by request context
jdevstudio11123, wl 10.3.5.0

Can I forcedly set service location?
  • 1. Re: WSDL generator for web-service behind a router/proxy
    user696 Explorer
    Currently Being Moderated
    yes, you can set ENDPOINT_ADDRESS_PROPERTY on BindingProvider for requestContext
    requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,"http://example.com/webservices/service1");

    For complete code please look below link
    http://docs.oracle.com/cd/E12839_01/web.1111/e13758/jws.htm#autoId11
    http://jax-ws.java.net/articles/MessageContext.html

    Regards,
    Sunil P

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points