ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Import wsdl from External URL

Post new topic  Reply to topic Goto page 1, 2  Next
 Import wsdl from External URL « View previous topic :: View next topic » 
Author Message
wbisantosh
PostPosted: Thu Aug 01, 2013 9:42 am    Post subject: Import wsdl from External URL Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 01, 2013 9:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Whats wrong with saving the WSDL to disk and importing the file?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Aug 01, 2013 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message
wbisantosh
PostPosted: Thu Aug 01, 2013 9:49 am    Post subject: Reply with quote

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
View user's profile Send private message
wbisantosh
PostPosted: Thu Aug 01, 2013 9:52 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 01, 2013 9:52 am    Post subject: Reply with quote

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
View user's profile Send private message
wbisantosh
PostPosted: Thu Aug 01, 2013 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 01, 2013 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
wbisantosh
PostPosted: Thu Aug 01, 2013 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 01, 2013 10:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
wbisantosh
PostPosted: Thu Aug 01, 2013 11:01 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 01, 2013 11:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
wbisantosh
PostPosted: Thu Aug 01, 2013 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 01, 2013 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
wbisantosh
PostPosted: Thu Aug 01, 2013 1:24 pm    Post subject: Reply with quote

Apprentice

Joined: 12 Nov 2012
Posts: 47

Sure. Here is the URL,

https://hub.cms.gov:8443/ApplicantEligibilityService?wsdl
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Import wsdl from External URL
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.