The method that returns a List does not have a "Response" in Visual Studio.
is returning a List the best way to go about this?
a Word document (which is basically a binary if I'm not mistaken). So I'm kind of at a lost as to how best to proceed to return the data.
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Naren Chivukula wrote:
I presume you are using bottom-up(Java to WSDL) approach in creating your WSDL file. I suspect if your WSDL has been updated after including getListOfAllTemplates() method. Have you double checked this?
Naren Chivukula wrote:
It is perfectly fine to return List. The corresponding WSDL mapping contains element with maxOccurs="unbounded".
My free books and tutorials: http://www.slideshare.net/krizsan
The getListOfAllTemplates() method is in the WSDL file that I provide to Visual Studio.
Is it fine knowing that the client is a C# program? I'm still wondering if C# can call a web service that returns a List
As for returning a Word document, I'll have a look into the 2 options you provided. Hopefully one of the options will work with a C# client.
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Naren Chivukula wrote:
It seems that after adding this method in WSDL, client side artefacts might not have been created?! As I see your WSDL, element "GetListOfAllTemplatesResponse" is properly mapped to List. Even if you had array instead of List, the element definition should appear same!
is it possible that somehow the WSDL file being generated by JBoss be incorrect?
Is it possible to convert a List to XML? Would that not be a better way for a web service to return data?
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Naren Chivukula wrote:Hi Steve,
is it possible that somehow the WSDL file being generated by JBoss be incorrect?
I haven't quite understood what incorrect part of WSDL you are referring here!
I still find it very odd that I can't even call a method that returns an array.
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
My free books and tutorials: http://www.slideshare.net/krizsan
Naren Chivukula wrote:
I still find it very odd that I can't even call a method that returns an array.
This would be bizarre to me as arrays are supported in almost in all languages!
Ivan Krizsan wrote:
Have you seen the WSIT - web service interoperability technologies?
If not, I recommend taking a look at: http://download.oracle.com/docs/cd/E17802_01/webse...ials/wsit/doc/WSITTutorial.pdf
So I need to find a way to pass a Word document to the client and back to the web service. Something tells me this won't be very straight forward.
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Consider Paul's rocket mass heater. |