Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a web service client

 
Shruti Sharma
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am creating a web service client using RAD tool. When I enter the WSDL url in the service definition I get an error saying:

"The service definition selected is invalid."

My WSDL URL is "https://surya9.dss.state.va.us/SPIDERWeb/services/SearchMainWService?wsdl".

Can someone tell why am I getting this error?

Thanks,
-Shruti
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Copy that URL and paste it into your browser's address bar. Press Enter. If you don't get a WSDL in return, that's why you are getting that error.
 
Shruti Sharma
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do see the WSDL file but I need to be in client N/W by connecting to VPN to access that file, does that mean that I have to connect to VPN to access the wsdl file as well?

An important point to mention here: The mesage that I get when I connect to VPN try accessing the WSDL file is:

******************
There is a problem with this website's security certificate.

The security certificate presented by this website was issued for a different website's address.

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.
We recommend that you close this webpage and do not continue to this website.
Click here to close this webpage.
Continue to this website (not recommended).
More information

*****************

I have to click on "Continue to this website (not recommended)." and that is when I get to see the WSDL file.

Please give some ideas on how to generating proxies to establish communication with this web service.

Thanks,
-Shruti


 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
If the web service is within your control, then you may want to consider to make the WSDL available using plain HTTP.
It makes little sense to require HTTPS to access the WSDL. The requests and responses when communicating with the web service are more important to protect.
If the web service is outside of your control, then I suspect there is little you can do. It does sounds like they should get a proper certificate - perhaps this is something you can suggest.
Best wishes!
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shruthi,
Please give some ideas on how to generating proxies to establish communication with this web service.

Manually copy the WSDL content on to your local system file and then generate proxies. You don't need to worry too much of accessing a secure WSDL.
 
Shruti Sharma
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Naren!

I have another question: I have created the classes (including the proxy class) using the WSDL URL through RAD. Now I need to send the input to my web service through an XML file. How to pass data to web service in an XML file through a SOAP message? Is there a tool that generates it?
Also, I need to pass the security parameters (username/password) for authorization and authentication.

Thanks,
-Shruti
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shruthi,
How to pass data to web service in an XML file through a SOAP message? Is there a tool that generates it?

You can do it by using SOAPUI.

Also, I need to pass the security parameters (username/password) for authorization and authentication.

Here is a link, which guides you on how to invoke a secure web service.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic