wood burning stoves 2.0*
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
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: 38481
    
  23
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.
 
Don't get me started about those stupid light bulbs.
 
subject: SOAP endpoint: interpretation?