use of pub.client.http?

Hi All,

I used pub.client:http service to invoke the another service that exist in the another server. It is executed successfully. I want know whether my approach is correct or not.

Invoked pub.client.http service.

  1.  1. Set the url as [URL]http://localhost:5555/invoke/DbSam/sample[/URL]
    
  2.  2. Method as post
    
  3.  3. loadAs is bytes
    
  4.  4. I declared one input document for this service, named as Input, which contains one string element called “eno”. I have mapped the Document Input to “args“ document that is in service in area.
    
  5.  5. Service in contains another doc called “auth” which contains user & pass, I gave the respectively.
    

Then when I run the service it worked correctly.

FYI:
The invoked service “sample” in localhost:5555 is expects one string input called “eno”

Is my approach is correct?

I used the following way to invoke the service via browser, I am using same approach here.
[URL]http://localhost:5555/invoke/DbSam/sample[/URL]
do we have any other way of using pub.client:http service to invoke the service in other server?

Thanks
Devi

Hi,

Here I would like to bring it to your attention that Maximum URL length is 2083 characters in Internet Explorer so if you have large data to post then instead of posting through url use html forms.This case can be best suited for xml posting.

Regards,
Amol.

Devi,
If your intention is to invoke service from another IS server, then you can do remote invoke also… Configure remote server in your IS server, and use WmPublic/pub.remote.* sevices to invoke flow/java services from other servers.

HTH
Senthil

Hi All,

I have some questions regarding the use of http.client here…

I have to write some content to the provided url, hence i am using ‘put’ method.
My document shall have one string.

Can somebody pls throw light on usage of args and the best practise to use for populating these input variables like args,headers, proxyAlias ?

Thanks,
Priya

Hello,

client:http service:
args → can be used for sending any arguments in the http url like you set (?) and pass inputs to the get URL for the remote host application and extract the inputs from the URL.

headers-> can be used to set the Content-Type etc…

Also for more review the IS BIS user guide for the service info.

HTH,
RMG

Hi RMG,

Thanks a lot for your response.

I have some other things to ask and looking forward for your guidance.

Can you pls tell me:

  1. How does reverse proxy gateway work for webservices ?
  2. Is it necessary to have an webm IS installed in the DMZ as Reverse Gateway Server or there can be other alternativesto set up a reverse gateway server in the DMZ and only have webMethods Is in the the internal netwrk ?
  3. If we do have a webm IS in the DMZ, after we have configured it and also created a port on the internal IS, what exactly is the process that passes the request to the webservice residing in the Internal IS ? I mean, if 127.0.0.5:7789 is the Internal Registration port, how do w elink this to the residing web service ?

Am new to implementing web services and the same in webmthods , hence i needed some basics to be cleared first, tahnks a lot in advance.

Regards,
Priya

Hi Priya,
To create a webservice has nothing to do with DMZ configuration. You can develop they way it should be without keep in mind from where it will be accessed.

Answer to your questions:

  1. How does reverse proxy gateway work for webservices ?
    Ans : Reverse proxy has nothing to do with webservices. It has to do with protocol i.e. HTTP in general.

  2. Is it necessary to have an webm IS installed in the DMZ as Reverse Gateway Server or there can be other alternativesto set up a reverse gateway server in the DMZ and only have webMethods Is in the the internal netwrk ?
    Ans: You can also use Apache as RI. Though I’ve never used it for IS but for MWS. I hope it should work for IS as well.

  3. If we do have a webm IS in the DMZ, after we have configured it and also created a port on the internal IS, what exactly is the process that passes the request to the webservice residing in the Internal IS ? I mean, if 127.0.0.5:7789 is the Internal Registration port, how do we link this to the residing web service ?

Ans : Please go through the following link. IT explains about how it works and step by step implementation.
http://idnxchange.com/webmethods-blogs/webmethods-reverse-invoke-http-gatweway.html

1 Like

Hi Vikas,

Thanks for your quick replies.

I did go through the link and from there wanted to undertstand,when creating the WSDL for connector of the web service, do we have to map the internal server’s registration port no in the WSDL explictly ?

Thanks,
Priya

Hi Priya,
If you have created a webservice on Internal IS and you or any of your client wants to access it from external network then in that case you will use your load balancer url with external gateway port configure on your RI.

Priya,

Do you use RI (Reverse Gateway) proxy IS in your environment that communicates from External entities to the Internal IS which Vikas in the above is taking about?

How is your WS invocation inbound requests designed to handle?

HTH,
RMG

Hi RMG,

Am currently in requirement gathering stage for both developemnt of the web sevice and also setting up of RI.
Other thing is, we are not handling the DMZ and proxy env, that shall behandled by our client and most probably we shall be given the port address to create the internal registration port(although am not sure about it).

This is the reason I am seeking for some ideas , so that I can design the web servie accordingly.

thanks,
Priya

It’s a best practice to use webservice endpoint alias concept when designing WS integration and WSDL’s and that may moving diff ernv’s/URL pointing will be easy.

The Internal Registration port will be only used if you have RI setup done already.

HTH,
RMG

Hi, I’m planning to use TN’s Partner On-boarding process. I have created an invitation with standard template questionnaire. I can send email to external partner but they can not access the link or questionnaire as MWS portlet is not accessible through RI.
Is there a way to enable MWS specific functions for specific external partners to view and update? In other words, how do I use the RI as gateway for MWS?

Any help or guidance to solve the above, would be highly appreciated.
Thank you,
Barun P