You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Yu, Joel, Contractor" <Jo...@asamra.hoffman.army.mil> on 2004/04/15 17:15:37 UTC

wsdl2java: invalid endpoint address for https

hi,
I encounter a problem when using WSDL2Java to generate client jar.  the
problem occured when there is a endpoint address defined in the wsdl file
with https as protocol.
>From what i understand, axis supports https.  So how can have wsdl2java
generate client class files that supports https?


you can find the wsdl file here:
http://schemas.monster.com/Current/Extensions/RecruitmentOneStop/WSDL/Recrui
tmentOneStop.wsdl

the part of the wsdl file where the problem occured:
<port name="BusinessGatewayEndpoint" binding="tns:OPMBusinessGatewayImpl">
<soapbind:address
location="https://gateway.monster.com:8443/bgwBroker/RecruitmentOneStop" /> 
</port>

The exception WSDL2Java throwed:
java.io.IOException: Emitter failure.  Invalid endpoint address in port
BusinessGatewayEndpoint i
ervice OPMBusinessGatewayServiceLocator:
https://gateway.monster.com:8443/bgwBroker/RecruitmentOtop
        at
org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceI
mplWriter.
a:192)
        at
org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:148)
        at
org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.jav
a:101)
        at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGenera
torFactory
va:284)
        at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:328)
        at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:82)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246)
        at java.lang.Thread.run(Thread.java:479)



thanks very much for your help