473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help consuming third part web services

Hello,

I am currently working on an embedded systems project where by I have
written a small web server that is being hosted on our internet appliance
(running on an Atmega128 chip and doing lots of col RFID and Mesh network
stuff).

In this example I am trying to get the AuthenticateUser web service to work.

I am using the following WSDL:
http://www.kcrismon.com/phaseivengr/...ebService.wsdl

My SOAP request via a .Net application having consumed the above WSDL is the
following:
http://www.kcrismon.com/phaseivengr/...cateuser_1.xml

The XML SOAP response that my embedded web server generates is:
http://www.kcrismon.com/phaseivengr/...cateuser_2.xml

When I call the webserrvice method using the following code.

org.xtango.xTangoServices x = new org.xtango.xTangoServices();

string xResp = x.AuthenticateUser("kcrismon", "cccc");

if ( xResp == null )
{
Response.Write("Web Request returned NULL");
}
else
{
Response.Write(string.Format("WebRequest returned {0}", xResp );
}

The method always returns a NULL. I have no idea what is going wrong. Are
there any tips regarding the format of my response oor the format of the WSDL
that will help me.

--
Sincerely,

Ken Crismon
PhaseIVEngr

Sep 19 '06 #1
2 2563
Hi Ken Crismon,

I don't find any problem with the serialization/deserialization. I think
the problem is at the following WebMethod - AuthenticateUser("kcrismon",
"cccc");

Try debugging this Web Method and make sure that it returns a proper value.

Could you post me the copy of proxy object at the client-end. This will help
me investigate further
--
Thanks & Regards,
Sundar Narasimman
Technology Specialist
Microsoft .NET
"Ken Crismon" wrote:
Hello,

I am currently working on an embedded systems project where by I have
written a small web server that is being hosted on our internet appliance
(running on an Atmega128 chip and doing lots of col RFID and Mesh network
stuff).

In this example I am trying to get the AuthenticateUser web service to work.

I am using the following WSDL:
http://www.kcrismon.com/phaseivengr/...ebService.wsdl

My SOAP request via a .Net application having consumed the above WSDL is the
following:
http://www.kcrismon.com/phaseivengr/...cateuser_1.xml

The XML SOAP response that my embedded web server generates is:
http://www.kcrismon.com/phaseivengr/...cateuser_2.xml

When I call the webserrvice method using the following code.

org.xtango.xTangoServices x = new org.xtango.xTangoServices();

string xResp = x.AuthenticateUser("kcrismon", "cccc");

if ( xResp == null )
{
Response.Write("Web Request returned NULL");
}
else
{
Response.Write(string.Format("WebRequest returned {0}", xResp );
}

The method always returns a NULL. I have no idea what is going wrong. Are
there any tips regarding the format of my response oor the format of the WSDL
that will help me.

--
Sincerely,

Ken Crismon
PhaseIVEngr
Sep 21 '06 #2
Mr. Narasimman,

Hello... Thanks for the response. I am not positive I understand what you
mean by the "proxy". I am not using a client proxy that would be created by
something like wsdl.exe. I simply have a client application that has added a
web reference using the Add Reference features of DevStudion 2005. It is
this processes that has imported into my application the namespace org.xTango.

The sample code below is what I use behind a simple Button Event.

// A simple test method to see if my Internet Appliance can authenticate.
// This method abstracts the details from the UI.
public string HandleAuthEvent( string userID, string password )
{
// Create an instance of the web service.
// The web.config defines the target URL for the web service.
// Currently that is
// http://xTango.org:8008/xTangoWebServ...bServices.asmx
// Don't let the extension of ASMX confuse you the reader. We use the
// MS standard URL extension to make this architecture more familuar to
// OEM vendors/partners. The Web Service is implemented on an Embedded
// system running Tiny OS and a ported version of the GoAhead embedded
// web server for an AtMega RISC based system.
org.xtango.xTangoServices x = new org.xtango.xTangoServices();

// Execute the web service on the appliance
string xResp = x.AuthenticateUser(userID, password);

// If NULL something failed that was not associated with a network error.

if ( xResp == null )
{
xResp = "Web Service response was NULL. Bad news!!";
}
else
{
// Cool. We got something back, report the response to the caller.
// In the real working world this response would be something usfull,
// at this point it is simply a string with the value of True or False.
xResp = string.Format("WebRequest returned {0}", xResp );
}
return xResp;
}

To provide the XML that I linked in the original message I used the Trace
Utility that is part of the Soap Toolkit, a very nice tool by the way.

So... The Web Method AuthenticateUser is indeed returning a response and
the response is encapsulated within the SOAP Envelope as follows:

http://www.kcrismon.com/phaseivengr/...cateuser_2.xml

So... I don't think I have a Client Proxy such as is created with WSDL.EXE
but if that is what I need I most certainly will create one and use that
within my application.

Is that what you would suggest?

BTW: I imlemented a simple brain dead version of this web service using the
DevStudio 2005 C# Web Service project and my application will indeed see real
data but using the Trace Utility as above my response XML from my Embedded
Web Appliance application is returning what appears to be the same exact XML
as what the brain dead Web Service is returning. Some of the HTTP headers
are different but as I understand it the Content-Type: text/xml;
charset=utf-8 is the only header that really can make a difference. I may of
course be wrong and please tell me what HTTP headers are important as part of
the response. My embedded web server can certainly handle what ever headers
are required.

I am at a loss and will appreciate any help you may be able to provide.

If you want more details than this forum can provide please contact me at
kr*****@hotmail.com

Hope all is well with you and hope to hear from you soon.

--
Sincerely,

Ken Crismon
PhaseIVEngr
"Sundar Narasimman" wrote:
Hi Ken Crismon,

I don't find any problem with the serialization/deserialization. I think
the problem is at the following WebMethod - AuthenticateUser("kcrismon",
"cccc");

Try debugging this Web Method and make sure that it returns a proper value.

Could you post me the copy of proxy object at the client-end. This will help
me investigate further
--
Thanks & Regards,
Sundar Narasimman
Technology Specialist
Microsoft .NET
"Ken Crismon" wrote:
Hello,

I am currently working on an embedded systems project where by I have
written a small web server that is being hosted on our internet appliance
(running on an Atmega128 chip and doing lots of col RFID and Mesh network
stuff).

In this example I am trying to get the AuthenticateUser web service to work.

I am using the following WSDL:
http://www.kcrismon.com/phaseivengr/...ebService.wsdl

My SOAP request via a .Net application having consumed the above WSDL is the
following:
http://www.kcrismon.com/phaseivengr/...cateuser_1.xml

The XML SOAP response that my embedded web server generates is:
http://www.kcrismon.com/phaseivengr/...cateuser_2.xml

When I call the webserrvice method using the following code.

org.xtango.xTangoServices x = new org.xtango.xTangoServices();

string xResp = x.AuthenticateUser("kcrismon", "cccc");

if ( xResp == null )
{
Response.Write("Web Request returned NULL");
}
else
{
Response.Write(string.Format("WebRequest returned {0}", xResp );
}

The method always returns a NULL. I have no idea what is going wrong. Are
there any tips regarding the format of my response oor the format of the WSDL
that will help me.

--
Sincerely,

Ken Crismon
PhaseIVEngr
Sep 21 '06 #3

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

Similar topics

9
by: viator | last post by:
Hello Everybody! I am working on a program which renders its GUI using swing components. The program does some bath processing (some lengthy matematical calculations) when user submit a task using...
0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
0
by: jennifer.perkins | last post by:
I've seen a couple posts by people having similar problems, but the suggested solutions I've tried so far haven't worked. I'm using a SOAP client in VB.Net (constructed by wsdl.exe) and the...
6
by: kbs | last post by:
Hi, I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without...
1
by: BestofAbhi | last post by:
I am consuming Java Web Services in .NET. The Java Web Services have been coded using Apache Axis. The binding style in the WSDL is 'Document' and type is 'Literal'. I have added these Java...
0
by: Abhijit Salvi | last post by:
I am consuming Java Web Services in .NET. The Java Web Services have been coded using Apache Axis. The binding style in the WSDL is 'Document' and type is 'Literal'. I have added these Java...
0
by: Matthew Copeland | last post by:
A little background. This is a VB.Net client application , and it uses a web reference to a web service, which has been properly refreshed. My app takes collections of two serializable...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
3
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.