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 » WSDL accessible on browser but unable to import into Soap UI

Post new topic  Reply to topic
 WSDL accessible on browser but unable to import into Soap UI « View previous topic :: View next topic » 
Author Message
7207165620
PostPosted: Tue Nov 18, 2014 11:15 am    Post subject: WSDL accessible on browser but unable to import into Soap UI Reply with quote

Apprentice

Joined: 11 Apr 2013
Posts: 37

Dear experts,
I have exposed web service on IIB. I followed steps
1)I have created wsdl file and created message model from wsdl.
2) I have created web service exposing flow from wsdl and deployed into broker.
I am able to access URL on browser and import wsdl into soap ui inside network.
Apache web server is configured to route request from web server to IIB server.
I am able to access URL( configured on Apache web server) on browser and import wsdl into soap ui inside network.
My client is able to access wsdl on browser with nated public IP and service name configured on Apache web server but unable to import wsdl into soap ui. Client is getting below error :
SoapUIException : Error importing wsdl
Client is complaining on xsd location on browser.

Whenever I access wsdl on browser schemaLocation is refering to IIB server IP which is not accessible to client.
Code:
<xsd:schema targetNamespace="http://www.example.org/Servicename/">
<xsd:include schemaLocation="http://IP:7800/Servicename?xsd=xsd0"/>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.example.org/Servicename/" schemaLocation="http://IP:7800/Servicename?xsd=xsd0"></xsd:import>
</xsd:schema>


address location on browser is always IIb server Ip and service name specified on SOAP Input node which is independent of WSDL file address location.
<soap:address location="http://IP:7800/Servicename"/>

The network communication is as below:

Public IP is natted to web server and rweb server request is routed to IIB server using Apache mod proxy conf.So in this manner IIB server is directly not accessible to Client.

Kindly suggest and let me know for any input.
[/b]
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Nov 18, 2014 10:42 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

You need to make a rule on the Apache server so that it resolves the xsd location before returning the info to the customer. I.e. make the call to the location and return the content... or add a comment into the wsdl that lets customers know how to resolve the ip/port to a natted ip/port. Adding a filter to the request / response could do that "automagically" for you.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gabrielj
PostPosted: Tue Nov 18, 2014 11:03 pm    Post subject: Reply with quote

Novice

Joined: 16 Nov 2014
Posts: 23
Location: Muscut,Perth,Sydney,Bangalore,Hydrabad,Coimbatore

Make the schema inline. it will worrk recenly i faced this issue.
Back to top
View user's profile Send private message
7207165620
PostPosted: Thu Nov 20, 2014 12:11 am    Post subject: WSDL accessible on browser but unable to import into Soap UI Reply with quote

Apprentice

Joined: 11 Apr 2013
Posts: 37

Hi gabrielj,
Could you please suggest me how to make schema inline ? I tried gogling but did not get anything useful.

Thanks
Back to top
View user's profile Send private message
7207165620
PostPosted: Sat Dec 06, 2014 3:48 am    Post subject: WSDL accessible on browser but unable to import into Soap UI Reply with quote

Apprentice

Joined: 11 Apr 2013
Posts: 37

Hi fjb_saper,
I have added below lines to mod_proxy.conf file in Apache webs server for URL redirecting and is working file, means whenever I am accessing web server URL on browser I am getting wsdl but schemaLocation includes IIB server URL.

<Proxy balancer://mycluster>
BalancerMember http://IP1:port
BalancerMember http://IP2:port
</Proxy>
ProxyPass /WebServerService balancer://mycluster/IIBService


Now I have added below line considering solution for my issue.

ProxyPassReverse /WebServerService balancer://mycluster/IIBService

But still I am getting IIB server URL on browser and IIB server URL is getting exposed.

Please let me know if I am doing anything wrong and I have add something new.

I too have below confusion

1) Do I need to provide URL or wsdl with schema file to client ?
2) Is it only the issue with Soap UI importing wsdl through wsdl while there is web server in between & public is not natted to IIB server ? If client send request through any application(java/.net), will the issue persist ?

I know I should test all these scenarios before I ask but somehow I can't ask my client to do so.

Kindly reply...I am badly stuck with this issue...
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Dec 06, 2014 4:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Well it looks like your xsds are referenced from the internal location.
See if you can reference them from the external location and still access them from the internal location...

The problem is that the request from outside the firewall is referencing content from inside the firewall and that is not accessible from outside the firewall.

Talk to your Apache URL expert and network expert and see what they come up with...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WSDL accessible on browser but unable to import into Soap UI
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.