• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while accessing secure web service

 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
i am creating a web service client for a secure web service (requiring user name , password for access). but while generating the client in eclipse by right clicking the wsdl i am getting the error

"schema_reference.4: Failed to read schema document 'http://xyz.com:80/cvb/abc?xsd=1', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not <xsd:schema>."

So I cannot create the client (in an eclipse web project) to access the web service.

Kindly help
Praveen
 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded the wsdl and have given the path of the xsd in my mcahine. even then it gives the same error.

reagrds,
Praveen
 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have given the xsd path as follows:

<xsd:schema>
<xsd:import namespace="http://ccc.cc.ccc.com/" schemaLocation="f://praveen//docs//ppp.xsd"></xsd:import>
</xsd:schema>

in the wsdl file imported in the client web project in eclips

regards,
Praveen
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!