File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes SOAP endpoint: interpretation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP endpoint: interpretation?" Watch "SOAP endpoint: interpretation?" New topic
Author

SOAP endpoint: interpretation?

surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

WSDL declares endpoint to access web-service:

The endpoint uses custom transport (CTP), opens port and listens for custom packets. How can I invoke the service based on "soap12:address"?
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

How can I use address like "CTP://127.0.0.1:5432/services/MyService.MyServiceCtpSoap12Endpoint/" ?
Amir Keibi
Ranch Hand

Joined: Apr 23, 2012
Posts: 49

This is a WCF service, isn't it?

Generally speaking, to use any custom protocol you need a client library. In this case, that library is available if your client is a .NET client, too. I think you should post your question in one of MSDN's forums to get better visibility.
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Amir Keibi wrote:This is a WCF service, isn't it?

This is a web-service deployed on AXis2.

Amir Keibi wrote:Generally speaking, to use any custom protocol you need a client library. In this case, that library is available if your client is a .NET client, too. I think you should post your question in one of MSDN's forums to get better visibility.

Am I correct that to use this endpoint URI, the custom library must have a parser that will extract schema, ip-address, port and connect there?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37926
    
  22
I think this question is too difficult for “beginning”, so I shall move it.
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Campbell Ritchie wrote:I think this question is too difficult for “beginning”, so I shall move it.

Awesome, it's definitely very informative. Could you try to answer it? Because I have no idea how can I use URI with custom schema.
Amir Keibi
Ranch Hand

Joined: Apr 23, 2012
Posts: 49

surlac surlacovich wrote:Am I correct that to use this endpoint URI, the custom library must have a parser that will extract schema, ip-address, port and connect there?


Yes. But it isn't just the parsing. It also has to know the underlying transportation protocol, message formats, etc.
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Amir Keibi wrote:
Yes. But it isn't just the parsing. It also has to know the underlying transportation protocol, message formats, etc.

Thanks Amir, it's getting more clear now.
In case of web-services (WS), if one send SOAP envelope to WS engine (e.g. AXis2) with endpoint "CTP://127.0.0.1:5432", the engine will parse the endpoint string and invoke TransportSender for CTP protocol. In this case the sender should 'know' how to construct messages according to CTP and send it to specified IP on port 5432.
Something like that?
Amir Keibi
Ranch Hand

Joined: Apr 23, 2012
Posts: 49

Generally true. Although I can't be sure about the detail of communicating through CTP.

By the way, does this help?

http://wso2.org/library/209
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Thanks a lot, this article is very helpful. It looks like if there is a sender defined for CTP transport, it will be invoked by axis every time you specify it in "To" header. So you can do additional URL parsing in the sender.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAP endpoint: interpretation?
 
Similar Threads
WSDL on internet shows IP address instead of hostname
Axis2 - WSDL to code
WSDL generated with AnyType,Unable to consume Web service of AnyType Element
SOAP Fault for SOAP Action property
Generating a WSDL in Axis2 deployed localhost on JBoss