I wonder if anyone can help me with this … I’m fairly new to web service development (Domino background) and have been having problems with a web service I’m trying to develop in a Domino application that will be consumed by a .net client web site. I’ll try to summarise it but if more detail is needed then let me know …
After reading the various online docs here and elsewhere I created a basic web serivce in Domino (7.0.2FP2) that returns a complex data type … couldn’t for the life of me get it work in .net as a client until after re-reading online and finding some others I changed the WSDL to a Doc/Literal and hey presto all worked! Great I thought until …
… enhancing the web service to develop it for production use I needed an array type and again using the guides in the various online docs that seemed fairly staright forward to incorporate into the complex data type … however …
… no matter what I tried (hours and days of testing) I kept getting errors in .net with unregonised type (array) and various things that seemed to imply it wasn’t resolving the namespaces etc etc … and then after much web searching I found an article that addressed just this issue and …
… changing the WSDL to RPC/Encoded hey presto it finally worked!!! Hurrah I thought and went to bed happy ready to employ the strategy in my production .net project, however …
… the next day starting a new project in .net (actually Visual Web Developer) and adding the web reference to the (yesterday working) Domino web service WSDL it suddenly wasn’t wasn’t reconising the returned structure and it didn’t even show the detail of parameters and returned values …
… again after much trial and error I finally found what (seems) to be happening in that a Domino web service has to be defined as a Doc/Literal type when first being added to .net as a web reference but at this stage arrays aren’t reconised in .net … then … change the web service to RPC/Encoded and save, switch back to .net and refresh/update the web reference and then it will recognise the array and things will work!
The problem in all of this solution is it’s no good for production and it’s not possible to keep switching between WSDL types for a web service as new clients are created etc.
So the question I’m trying to answer is as follows :
Is there a way to create a web service in Domino of type Doc/Literal (to enable .net to have it added and working) that uses arrays ok or is there maybe a bug in .net that’s casuing this problem or am I missing something and there’s another solution that’s out there?
Any help or pointers at all on thiswould be so helpful thanks!
Derek