Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

web services asmx

Posted on 2014-01-05
7
466 Views
Last Modified: 2016-02-26
Hi I am keen to know that when webservices sends response,  does that response converts to binary data? I think that should be done becuase on network wire,  xml cannot go directly  and data should be wired in  binary only as at lower level let us say on physical layer we deal only with binary data. so if I say that webservice sends xml in soap that means its the responsibility of physical layer to convert in binary right?

Moreover Do wsdl and soap both are sent to client? or wsdl is created automatically on the basis of soap sent.
0
Comment
Question by:Dinesh Kumar
  • 4
  • 3
7 Comments
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 500 total points
ID: 39759391
Respectively:

if I say that webservice sends xml in soap that means its the responsibility of physical layer to convert in binary right?
Yes.

Moreover Do wsdl and soap both are sent to client?
Yes.

or wsdl is created automatically on the basis of soap sent.
It can be, although a request for the WSDL doesn't have to be a SOAP request.
0
 

Author Comment

by:Dinesh Kumar
ID: 39759800
Thanks Dave for to the point answers.

but some related query are also there, if you can help!

http://www.webservicex.net/CurrencyConvertor.asmx?op=ConversionRate

In the last of this link, there is some SOAP shown,  what the use of that?

1) what can be the situations that I need to actually make a soap request to pass soap xml to the server to get response but there I need to parse xml also.

2) and when add service reference where I don't care about the SOAP then the process should be this

request changes to SOAP(and who changes this?) and SOAP changes to Binary right?
0
 
LVL 34

Assisted Solution

by:Dave_Dietz
Dave_Dietz earned 500 total points
ID: 39760354
If you are referring to the last portion of the URL "?op=ConversionRate" this is not SOAP, this is simply a query string calling a particular function of a web service.  SOAP is an XML formatted body that is sent to a server using a POST request or received from a server in response to a request.

In general you would only need to send a SOAP request if you need to provide some sort of data to the server or if the web service specifically requires the request to be sent in SOAP format.

I'm afraid I not sure I understand the second question - I think that if you are adding a service reference you need to be aware of what sort of request the service expects.  A request doesn't simply 'change to SOAP' - it has to be generated that way.

As far as the binary part, are you talking about actual binary data being sent to the service in a SOAP request or are you meaning the format of the actual bytes sent across the wire using TCP/IP?
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

Author Comment

by:Dinesh Kumar
ID: 39761243
In general you would only need to send a SOAP request if you need to provide some sort of data to the server or if the web service specifically requires (when it will be specifically required.)the request to be sent in SOAP format.  Please see the attachment for  which I was asking why that is written there?

second question I was trying to say that if I am having a proxy class generated then I will communicate with the server webservice using objects e.g

Service1Client srv=new Service1Client();
List<employees> ListEmp=srv.GetEmployees('1') // 1 for managers
so srv.GetEmployees('1')  is the request so this must become a soap request internally who does this conversion to soap request?

thanks for your help until now.
refering-to-here-for-SOAP.png
0
 
LVL 34

Assisted Solution

by:Dave_Dietz
Dave_Dietz earned 500 total points
ID: 39763292
For part 1 that is a reference for the specific format for a request made to the service using SOAP.  If you want to use SOAP it needs to follow that specific format.  The specific service you are referencing here can accept HTTP GET, HTTP POST or SOAP requests so you would only need to send a SOAP body if you use the SOAP method.

Part 2, it would be up to the Service1Client object to interpret the WSDL and format the request.  Whether or not it can actually do it depends on the object itself.
0
 

Author Comment

by:Dinesh Kumar
ID: 39774716
Hi Dave it would be great if you can pass me some url for part one. I will be thankful to you and part 2 I understood.
0
 

Author Closing Comment

by:Dinesh Kumar
ID: 39805993
thank you.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
API Soap Calls 4 126
Allow Local User to Log On FTP 8 60
PHP 7 with IIs and SQL Server Windows 2008 Server failed to connect 8 116
Sweet32 Vulnerability in Microsoft IIS7.5 6 944
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question