• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis Client :Emitter failure while running WSDL2Java (My problem is not with https)

 
aravind kanganar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to develop a web service client (for a test web service developed locally) using WSDL2Java tool from axis -1.4.

I tried searching in older posts but those problems didn't seem to match mine..

I supplied wsdl url (http://localhost:8080/Test/ImageService/imagestore.wsdl) and ran the tool and obtained the following:


java.io.IOException: Emitter failure. Invalid endpoint address in port ImageSoap11 in service ImageServiceLocator: /ImageService/
at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:242)
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
at java.lang.Thread.run(Unknown Source)


My wsdl looks as:





Please note [ soapAction="" ] in above xml, I read in some other forum that this is dynamically decided and meant to be empty string. Hope it is not cause for the exception.

Please help me with this... Any kind of pointers will be help full.

Thanks in advance

Aravind


 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aravind,


The location attribute value must be a valid uriReference type. I think as you are using http transport protocol, it should be something like http://localhost:8080/ImageService/. Also, you should actually see service is running at this url.
 
aravind kanganar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Naren for your quick reply I believe this will help me.

-Aravind
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!