Forum Discussion

robertdeboer's avatar
robertdeboer
New Contributor
13 years ago

wsdl load issue

I cannot load my wsdl in soapui, I am having issues with loading the xsd. I am getting the error:

Error loading [http://xxx:15000/Applications/xxx/services/xxxx/xxxxx.svc?xsd=xsd2]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: STRING

When I load the xsd ([http://xxx:15000/Applications/xxx/services/xxx/xxx?xsd=xsd2) in my browser it is working fine.

Has anyone an idea what is going wrong? I have attached the url.

I am using soapui 4.5.1.

Robert de Boer

16 Replies

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    sudhani001
    zip files: choose your version here http://sourceforge.net/projects/soapui/files/soapui/

    regarding your wsdl load issue, the http error file states that you got a 400 response when requesting the wsdl. So the content of the response is plain html which can not be parsed as wsdl (xml) definition.
    Error seems to be "invalid hostname" use when performing the http GET to retrieve the wsdl



    Tue May 28 11:40:57 EDT 2013:DEBUG:>> "GET /ImportExport2012Phase2/PwC.US.TT.StateANA.ImportExportSvc.ImpExp.svc?wsdl HTTP/1.1[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:>> "Host: matlkana2whs001.us.nam.ad.pwcinternal.com:8080[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:>> "[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "HTTP/1.1 400 Bad Request[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "Content-Type: text/html; charset=us-ascii[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "Server: Microsoft-HTTPAPI/2.0[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "Date: Tue, 28 May 2013 15:40:57 GMT[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "Connection: close[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "Content-Length: 334[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "<HTML><HEAD><TITLE>Bad Request</TITLE>[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "<BODY><h2>Bad Request - Invalid Hostname</h2>[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "<hr><p>HTTP Error 400. The request hostname is invalid.</p>[\r][\n]"
    Tue May 28 11:40:57 EDT 2013:DEBUG:<< "</BODY></HTML>[\r][\n]"
  • sudhani001's avatar
    sudhani001
    Occasional Contributor
    thank you for response, but I have different url which is same as one which I posted yesterday but that's requesting different server.

    here's http log for different one...



       Wed May 29 09:46:40 EDT 2013:DEBUG:>> "GET /ImportExport2.0R2/PwC.US.TT.StateANA.ImportExportSvc.ImpExp.svc?wsdl HTTP/1.1[\r][\n]"
    Wed May 29 09:46:40 EDT 2013:DEBUG:>> "Host: matlkana2wht001.us.nam.ad.pwcinternal.com:8080[\r][\n]"
    Wed May 29 09:46:40 EDT 2013:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
    Wed May 29 09:46:40 EDT 2013:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
    Wed May 29 09:46:40 EDT 2013:DEBUG:>> "[\r][\n]"
    Wed May 29 09:46:43 EDT 2013:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Wed May 29 09:46:43 EDT 2013:DEBUG:<< "Content-Length: 48506[\r][\n]"
    Wed May 29 09:46:43 EDT 2013:DEBUG:<< "Content-Type: text/xml; charset=UTF-8[\r][\n]"
    Wed May 29 09:46:43 EDT 2013:DEBUG:<< "Server: Microsoft-IIS/7.5[\r][\n]"
    Wed May 29 09:46:43 EDT 2013:DEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
    Wed May 29 09:46:43 EDT 2013:DEBUG:<< "Date: Wed, 29 May 2013 13:46:43 GMT[\r][\n]"
    Wed May 29 09:46:43 EDT 2013:DEBUG:<< "[\r][\n]"
    Wed May 29 09:46:43 EDT 2013:DEBUG:<< "<?xml version="1.0" encoding="utf-8"?><wsdl:definitions name="ImpExp" targetNamespace="http://tempuri.org/" /wsdl:binding><wsdl:service name="ImpExp"><wsdl:port name="BasicHttpBinding_IImpExp" binding="tns:BasicHttpBinding_IImpExp"><soap:address location="http://matlkana2wht001.us.nam.ad.pwcinternal.com:8080/ImportExport2.0R2/PwC.US.TT.StateANA.ImportExportSvc.ImpExp.svc"/></wsdl:port></wsdl:service></wsdl:definitions>"



    so what could be wrong in other ?
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    You should have a look on the server side (server or ws configuration?)

    This ws works: /ImportExport2.0R2/PwC.US.TT.StateANA.ImportExportSvc.ImpExp.svc?wsdl
    This one not: /ImportExport2012Phase2/PwC.US.TT.StateANA.ImportExportSvc.ImpExp.svc?wsdl
  • sudhani001's avatar
    sudhani001
    Occasional Contributor
    hello,

    I don't see any difference in ws configuration both are same, of course with difference of database name and server and I can't think of what could be different in server configuration, any clue?

    Thanks