Last post May 07, 2014 07:21 AM by imghani
Apr 24, 2014 03:20 AM|nageshrgosul|LINK
My clint have gave me one wsdl, here it is...
I have added wsdl as web reference in my project. After doing so, what can i do??
i need to interact with wsdl. I have one XML file, after validating this XML file against the XML schema, which will be uploaded to there site..
how can i do this one??
please help me out to solve...
Apr 24, 2014 03:34 AM|Ashim Chatterjee|LINK
Apr 25, 2014 04:43 AM|Fuxiang Zhang - MSFT|LINK
Thank you post the issue to asp.net forum.
In my mind, when you add a web service reference to your project with the service wsdl in Visual Studio.
It will generate a client proxy class in your project. You can using this proxy to call service method described in WSDL.
For more information, please refer to below article in MSDN "Generate a Web Service Proxy".
Apr 28, 2014 07:23 AM|nageshrgosul|LINK
i have done everything. that web service has 3 methods which are download, upload and testaccess.
I want to upload an XML file to there website through upload method which has 4 parameters that is
<xs:element name="openqData" type="xs:base64Binary" />
<xs:element name="userLogin" type="xs:string" />
<xs:element name="userPassword" type="xs:string" />
<xs:element name="action" type="xs:int" />
What can i do with base64Binary??? can i pass XML file as base64Binary?
i have userlogin and userpassword. and how about action???
please let me know... i am in need..
Apr 28, 2014 10:37 PM|Fuxiang Zhang - MSFT|LINK
Thanks for your back.
For how to pass the xml document as parameter to the web service, I suggest you follow below threads.
Apr 30, 2014 02:44 AM|nageshrgosul|LINK
thanks for your reply..
the web service has upload method. so by this method i need to pass XML file. That method has 4 parameters. how can i send the file throgh the method of web service?
May 01, 2014 07:50 AM|imghani|LINK
If you are provided with WSDL file, then you need to create proxy against it.
You can create proxy using Visual Studio. Proxy will be a local object, you will be interacting with and passing your data.
After validating your xml, you can call respective method (e.g. Upload) and pass your xml as string to it.
May 07, 2014 06:37 AM|nageshrgosul|LINK
i need to interact with wsdl. I have one XML file, i need to validate this file. so far i have validated this file. And after validation, i need to upload this XML file to the client wsdl file. This wsdl has one method i.e upload method.
parameters are: upload(base64Binary xml, string UserId, string UserPassword, string action)...
So by above method i need to upload the XML file.. How can i pass my XML file ??
May 07, 2014 07:21 AM|imghani|LINK
I believe you need to encode your XML in Base64 encoding and then pass as parameter to your Upload method as...
string strXMLBase64 = Convert.ToBase64String(byteArray);
upload(strXMLBase64, yourUserId, yourPassword, youraction);
But only thing I am not sure that the Upload method first parameter is a string or a custom type?