thanks for response. I tried to do the example like u show me but i have the same problem:
El tipo de contenido text/plain del mensaje de respuesta no coincide con el tipo de contenido del enlace (text/xml; charset=utf-8). Si usa un codificador personalizado, asegúrese de que el método IsContentTypeSupported se implemente correctamente. Los primeros 572 bytes de la respuesta fueron: 'HTTP/1.1 100 Continue <?xml version="1.0" encoding="UTF-8" standalone="yes"?><env:Envelope xmlns:env=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema"><env:Body env:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"><m:verficaRUCResponse xmlns:m=" http://www.bea.com/education/webservices/examples/basic/javaclass"><estado xsi:type="xsd:string">No Activo</estado></m:verficaRUCResponse></env:Body></env:Envelope>'. i don't know, what's the problem ? :( maybe is the Visual studio? :/. I'll try to upload a video with my example what i'm traying .. blessing. Manuel Lazo 2012/3/10 Cerebrus <[email protected]> > The webservice function "verficaRUC" accepts a string parameter and > returns a string response. That means it could in reality accept just > about anything (even an XML snippet) and be returning anything as > well. > > Assuming that you know enough about the webservice that "20501638651" > is a correct format, it is easy. You have already added the > webreference, so you do not need to deal with SOAP. You can simply > pass the string to the method and the return value is returned as a > string. > > In this case, passing this string "20501638651", returns the value "No > activo" (Not active). This tells me that we are passing the value in > the correct format. Try with other numbers, it will work. > > --- > Dim ws As New sunat.wsadpd() > Dim retValue As String = ws.verficaRUC("20501638651") > Console.WriteLine(retValue) > --- > > On Mar 9, 10:27 am, Manuel Lazo <[email protected]> wrote: > > like this? > > > > dim xml as xmldocument 'but in this > > xml document first i have to give it the value with a correct body in > xml > > is > > > > correct that? > > Dim ws As New sunat.wsadpd > > Dim FinalValue As New string > > FinalValue = ws.verficaRUC(xml) > > > > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] To unsubscribe from this group, send email to [email protected] 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
