Hi Mr. Stephen and Mr. Cerebrus: Well, I tried to do this example, look at please. my web reference has like source this link = " http://www.aduanet.gob.pe/ws-ad-pd/ws-ad-pd?WSDL" this is the original source about the WS. I want to use the operation "verficaRUC", how it work? :
I have to send to parameter with value of example ="20501638651" after the operation "verficaRUC" has to return a value in STRING . this link es the operation : http://www.aduanet.gob.pe/ws-ad-pd/ws-ad-pd?operation.view=verficaRUC you write a value of 11 characters after click in the button and u have to response a body of xml. but.... this is the moment when i have problems. I show the error in click event. in spanish : El cliente encontrĂ³ el tipo de contenido de respuesta 'text/plain', pero se esperaba 'text/xml' English : the customer found the kind of content of answer is 'text/plain', but is waiting 'text/xml' I cant upload the image , if u want i send to screem but i have to know your email. Imports System.Data Imports System.Xml Imports sunat = teledespacho.Aduana ' this is my web reference ' Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim ws As New sunat.wsadpd Dim xmldoc As New XmlDocument xmldoc.Value = ws.verficaRUC("20501638651").ToString 'I tried with kind of value string and xmldocument but i have to same error.' Catch ex As Exception MsgBox(ex.Message) End Try End Sub End Class 2012/3/6 Cerebrus <zorg...@sify.com> > You can send parameters to public methods of a webservice that do > accept parameters. Parameters are sent as part of the SOAP body > (assuming an XML webservice). > > Unfortunately, that webservice page is in spanish (and being technical > in nature, doesn't translate too well). > > On Mar 2, 5:42 am, gardo <gardo...@gmail.com> wrote: > > hello everyone of this group. > > > > I want to know if anyone has a example of, how can i send parameter > > to a web service from vb.net?? > > > > web service --> > http://www.aduanet.gob.pe/aduanas/operatividad/WebServices.htm > > > > please if anyone to knows a example help me!, thanks > > > > Manuel Lazo. > > -- > You received this message because you are subscribed to the Google > Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML > Web Services,.NET Remoting" group. > To post to this group, send email to dotnetdevelopment@googlegroups.com > To unsubscribe from this group, send email to > dotnetdevelopment+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en > or visit the group website at http://megasolutions.net > -- Manuel Lazo. -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to dotnetdevelopment@googlegroups.com To unsubscribe from this group, send email to dotnetdevelopment+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net