473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

How to consume a non .Net web service with VB.net?

I am developing an application that uses live parcel tracing with
Canada Post. My experience with web services is limited- being
familiar with "Adding a web reference" for services made in .Net

Canada Post's web service is not .Net based (and they have not
disclosed the environment to me).

I have two problems. They may be related, but I do not know.

1) the web service I am to consume is secured with a username and
password. I have those. When I add the web reference, I am prompted
for these, with a login window that looks like an IE login window.
After I enter those, I am presented with a second login window- this
one has a 4 fields, the URL, Username, Password and Domain. I don't
have anything to enter in the domain. I leave it empty.

2) after supplying my username and password I get a generic error-
basically, the "Web Reference" method does not appear to work.

I provided wrong credentials to see if it was a username and password
issue, and it's not. Canada Post assures me my account works.

Typically, my experience has been to perform the above, and the Add
Web Reference window displays a list of available methods.

I'm just getting XML that tells me something was wrong on the other
side.

The error looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
<https://obc.canadapost.ca/sap/bc/soap/rfc?sap-client=100##- <SOAP-
ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<https://obc.canadapost.ca/sap/bc/soap/rfc?sap-client=100##- <SOAP-
ENV:Body>
<https://obc.canadapost.ca/sap/bc/soap/rfc?sap-client=100##- <SOAP-
ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Internal Server Error</faultstring>
<detail>SoapDoc::Init: Cannot set inout buffer</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I know this is probably not that helpfull, but I would appreciate a
pointer to somewhere on how to consume not .net web services with
vb.net.

Thanks in advance

Rob W

May 23 '07 #1
1 5711
"raz230" <ra****@gmail.comwrote in message
news:11**********************@p47g2000hsd.googlegr oups.com...
The error looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
<https://obc.canadapost.ca/sap/bc/soap/rfc?sap-client=100##- <SOAP-
ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<https://obc.canadapost.ca/sap/bc/soap/rfc?sap-client=100##- <SOAP-
ENV:Body>
<https://obc.canadapost.ca/sap/bc/soap/rfc?sap-client=100##- <SOAP-
ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Internal Server Error</faultstring>
<detail>SoapDoc::Init: Cannot set inout buffer</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
"Internal Server Error" probably means what it says: an internal error in
their server. After all, do _you_ have something called an "inout buffer?"
--
John Saunders [MVP]
May 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Hatmaker | last post by:
I have begun experimenting with web services, and I created some simple web services in C# and was able to install them with IIS and create an equally simple C# client to consume them. My next...
0
by: pranoliver | last post by:
Hi, How can I consume a Web Service that returns a DATASET from classic ASP. I know how to consume the Web Service when it returns just a variable using SOAP Toolkit 3.0. Thanks In Advance.
2
by: Abeslom via .NET 247 | last post by:
Hi, I am trying to create a simple .NET http-Get client that willconsume a java webservice on a mainframe. If I type the URL forthe webservice in the Browser, the service works and I get theexpected...
4
by: John Bailo | last post by:
I wrote a .NET/c# webservice which I then needed to consume from java server pages. The simplest ( and best ) solution I found, was some code to open a socket, and send a SOAP message directly...
4
by: geilen | last post by:
I'm trying to use a dataset returned from a web service in an unmanaged C++ (MFC) client. The dataset is returned as a BSTR, and I'm having trouble reading the BSTR into an XML document for...
0
by: leslie_tighe | last post by:
Hello, I have a set of web services running on Java server that are exposed through axis 1.2.1. I can invoke these services in browser and through a java test client. However, when I try to...
5
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said...
3
by: frustratedcoder | last post by:
I need to consume a web service written in Perl but there is no wsdl file for this service. The perl soap client that can call and consume this web service looks like this (if it helps) #!perl...
2
by: hharry | last post by:
hello all, trying to consume a simple web service using httpwebrequest instead of generating a proxy class. code for simple web service: Imports System.Web.Services ...
0
by: ericms | last post by:
I need to consume one of our vendor's web service. So, we need to consume the web service behind a proxy server. I am working with Visual Studio 2005 and .NET 2.0. I did right-click on a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.