-3

Is it possible to generate java web-service client using a WSDL file(from local file-system)?

I am working with siebel and Java. siebel developer send me a WSDL file, I need to generate java web-service client. How can I generate client using that WSDL file which is saved on my desktop like a normal file?

I know how to generate web-services clients in Java using eclipse, But eclipse is looking for a WSDL url. which siebel can not provide.

Is there any alternative?

luiza
  • 74
  • 1
  • 8
  • possible duplicate of [Web service client given WSDL](http://stackoverflow.com/questions/4172118/web-service-client-given-wsdl) – Seelenvirtuose Jun 23 '15 at 17:54
  • 1
    In Eclipse, right click your project and create a new web client. It will ask you for your wsdl (which you should have on your project path) and stage of deployment. There are some additional options which aren't necessarily important. Then the client gets generated. – CubeJockey Jun 23 '15 at 17:56

1 Answers1

5

You can do it in eclipse just copy the wsdl file into the project root and then when you click to generate instead of url click browse choose the project and select your wsdl.

enter image description here

Right click on project->new->other

enter image description here

enter image description here

enter image description here

enter image description here

brso05
  • 13,142
  • 2
  • 21
  • 40