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

Reply via email to