What advantages does SOAP add to it? Especially as a lot organizations simply doesn't have the people to set up a full Enterprise Service Bus architecture and a lot of the public webservices out there are servicing POX or REST style Webservices anyway.
Then I pulled the WSDL for my saleforce acct and it gave me 1500 lines in decl alone
don't have the time to play with that now....
@Thomas: I honestly haven't had a chance to do any testing yet, I just saw the feature list. I'll let you know after this weekend. It's entirely possible that it has something to do with the WSDL you're trying to import -- maybe the encoding style or something. I'll try to do lots of different tests.
@Matt: yes, I've seen a Salesforce WSDL file before. Those things are monsters. ![]()
@Axel: I think that continues to be an excellent question -- SOAP vs. REST vs. any kind of "situational" XML or JSON messages.
There are plenty of times where SOAP is complete overkill. To use the hammer example, SOAP can be like using a sledgehammer to hang a picture on the wall.
In most projects I work on, I avoid the web services interfaces, to be honest. Unless there's already some kind of infrastructure and existing knowledge in place. If there is, it's a great fit because people already have the tools and it makes Domino more of a "player" in an enterprise.
However, you don't really want to force the issue either. If you're just trying to build an app that another app can trade information with, web services may or may not make sense. It all depends (as does everything in life).
I'm in the middle of a project right now where I'm taking calls on a Domino 7 server that need to get passed to a SQL Server database, and then the resultsets need to be manipulated and returned to the caller. What did I decide to use? HTTP GET requests for the incoming messages, and HTTP plain/text formatted responses in JSON format. Why? It made the most sense. When I'm finished with my project, my client will understand it and be able to integrate it anywhere they want with little problem. They don't have any web services expertise in-house, and right now they don't need it. They just want to move some data around.
- Julian
However, if I'm using tools to generate or interact with a web service, I could care less. The tools should take care of it all for me, completely transparently.
In the old days (a few years ago
), RPC/encoded was very widely understood by all of the tools so it was the safe bet. These days, doc/literal is probably more pervasive, if for no other reason than the fact that it was (and maybe still is) the default message format for .NET web services. I'm pretty sure it was, anyway.
The other advantage to /literal format is that it's less verbose, so the XML messages are smaller. In practice, though, the size doesn't make that much of a difference over a corporate network unless you have a LOT of web service traffic.
- Julian
/Thomas
Function EchoString (s As XSD_String) As String
EchoString = s.getValueAsString()
End Function
There will also be a setValueFromString() function if you need to set a value.
All the XSD classes are actually documented in the lsxsd.lss file, which is a plain-text LotusScript file in your Notes7 program directory.
- Julian
I was able to get the exchange rate web service calc to work on Notes 8. I have been playing with IBM helpdesk.nsf sample web service. But I am uncertain on how to write to the database.
Thanks
-Brian-
I successfully imported the wsdl but I was not able to compile the call to the web service function.
/Thomas