Author |
Message
|
wbisantosh |
Posted: Thu Aug 01, 2013 9:42 am Post subject: Import wsdl from External URL |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
Hi,
I have a WSDL file from a remote site which is tested good with SoapUI and when I try to import a WSDL fromthe URL,I get this error,
Code: |
Received fatal alert: handshake_failure |
Is it possible use SSL with WMb toolkit to import the WSDL from a Remote URL ?
Please help
Thanks |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Aug 01, 2013 9:43 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 01, 2013 9:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You could certainly use a browser to read the WSDL and save it locally.
Broker can use SSL to read WSDLs, but unless the Toolkit has a relevant certificate in it's keystore, it may not be able to create an SSL connection.
"handshake failure" seems to indicate that there's an issue with the certificate.
Use a browser, see if the browser complains about expired or self-signed certificates. |
|
Back to top |
|
 |
wbisantosh |
Posted: Thu Aug 01, 2013 9:49 am Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
well, the WSDL file is pointing to XSD's which are inter-related to around 25-30 XSD's. I have also tried that but get issues like "Malformatted UTF-8" and "Whitespace missing after attribute value" exists while I try downloading them to disk. |
|
Back to top |
|
 |
wbisantosh |
Posted: Thu Aug 01, 2013 9:52 am Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
@mqjeff
The Keystore Toolkit looks for SSL in keystore while hand-shake, is it same as the Broker Runtime ? or does Toolkit have a seperate keystore we can use ?
Thanks for your reply
Last edited by wbisantosh on Thu Aug 01, 2013 9:54 am; edited 1 time in total |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 01, 2013 9:52 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Are you trying to copy the wsdls from somewhere, or are you using the browser to talk to the service and request ?wsdl
?
the ?wsdl should give you everything you need as one thing. |
|
Back to top |
|
 |
wbisantosh |
Posted: Thu Aug 01, 2013 10:01 am Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
I tried this procedure,
1.In browser, URL?wsdl --> gave me w WSDL in the browser
2. Copied and pasted it in a notepad, saved it as "Sample.wsdl"
When I try to import this wsdl to soapui it provides me with following error,
Code: |
org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA |
And this is while connecting to a URL mentioned in the wsdl element,
<xsd:include schemaLocation="URL" /> |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Aug 01, 2013 10:05 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
wbisantosh wrote: |
I tried this procedure,
1.In browser, URL?wsdl --> gave me w WSDL in the browser
2. Copied and pasted it in a notepad, saved it as "Sample.wsdl"
When I try to import this wsdl to soapui it provides me with following error,
Code: |
org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA |
And this is while connecting to a URL mentioned in the wsdl element,
<xsd:include schemaLocation="URL" /> |
Don't copy/paste, just SAVE AS. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
wbisantosh |
Posted: Thu Aug 01, 2013 10:10 am Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
@lancelotlinc,
Tried that and SoapUI gives the same error,
Code: |
org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA |
And also tried importing it to Toolkit and it gives me with this error,
Code: |
XSD: The location "URL" has not been resolved Line: 4,Column:4
WSDL: The 'Sample' element referenced by the body part cannot be resolved, Line: 9,Column:5 |
etc |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Aug 01, 2013 10:48 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
wbisantosh wrote: |
@lancelotlinc,
Tried that and SoapUI gives the same error,
Code: |
org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA |
And also tried importing it to Toolkit and it gives me with this error,
Code: |
XSD: The location "URL" has not been resolved Line: 4,Column:4
WSDL: The 'Sample' element referenced by the body part cannot be resolved, Line: 9,Column:5 |
etc |
From Internet Explorer, SAVE AS.
Likely your ?wsdl provider is using a self-signed cert. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
wbisantosh |
Posted: Thu Aug 01, 2013 11:01 am Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
@lancelotlinc,
yes. That is what I did, from internet Explorer --> Save As and saved as .wsdl file and used it with SoapUI and WMB Toolkit.
Yes the provider is using SSL, I have used a Keystore in SoapUI to connect to the WSDL |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Aug 01, 2013 11:10 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
wbisantosh wrote: |
from internet Explorer --> Save As and saved as .wsdl file and used it with SoapUI and WMB Toolkit. |
This worked, right ? You have now successfully imported the WSDL ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
wbisantosh |
Posted: Thu Aug 01, 2013 11:19 am Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
No. This is what I got, While trying with wsdl downloaded by Clicking SAVE AS on the Internet Explorer,
Code: |
SoapUI gives the same error,
Code:
org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
And also tried importing it to Toolkit and it gives me with this error,
Code:
XSD: The location "URL" has not been resolved Line: 4,Column:4
WSDL: The 'Sample' element referenced by the body part cannot be resolved, Line: 9,Column:5 |
|
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Aug 01, 2013 11:20 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
wbisantosh wrote: |
No. This is what I got, While trying with wsdl downloaded by Clicking SAVE AS on the Internet Explorer,
Code: |
SoapUI gives the same error,
Code:
org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
And also tried importing it to Toolkit and it gives me with this error,
Code:
XSD: The location "URL" has not been resolved Line: 4,Column:4
WSDL: The 'Sample' element referenced by the body part cannot be resolved, Line: 9,Column:5 |
|
Is the URL public? I can try importing it if you like. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
wbisantosh |
Posted: Thu Aug 01, 2013 1:24 pm Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
|
Back to top |
|
 |
|