473,803 Members | 3,448 Online
Bytes | Software Development & Data Engineering Community
+ 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 AuthenticateUse r 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.xTan goServices x = new org.xtango.xTan goServices();

string xResp = x.AuthenticateU ser("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 2582
Hi Ken Crismon,

I don't find any problem with the serialization/deserialization . I think
the problem is at the following WebMethod - AuthenticateUse r("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 AuthenticateUse r 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.xTan goServices x = new org.xtango.xTan goServices();

string xResp = x.AuthenticateU ser("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.xTan goServices x = new org.xtango.xTan goServices();

// Execute the web service on the appliance
string xResp = x.AuthenticateU ser(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 AuthenticateUse r 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 - AuthenticateUse r("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 AuthenticateUse r 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.xTan goServices x = new org.xtango.xTan goServices();

string xResp = x.AuthenticateU ser("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
2329
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 a command button. but when that task is submitted the GUI stops responding to events. I want to provide the option of interrupting the processing prematurely but providing a command button is not helping beacause the GUI is not responding to...
0
3486
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 Pentagjetvedeh karuvificials madhla reachathe strategy in karkun campaign deshatinst terrorism. "mudivae maretu winning or losing karkun global varti jetvedeh terror?" Mr. Rumsfeld adugued in a recent memormariyuum. vede velli jetvedeh madhla...
0
2647
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 third party web service it's consuming is served by Axis. The request messages my client sends are processed fine by the server, and the SOAP response is making its way to my client - but when .Net finishes processing the message I end up with an...
6
2338
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 having to do a httpwebreqeust call.
1
4397
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 Web Services both as Web Reference and Reference (ie dll generated using wsdl.exe) in the Project in order to access them. I am able to get the output for web methods that return just a string. However when it comes to complex data like an object /...
0
1368
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 Web Services both as Web Reference and Reference (ie dll generated using wsdl.exe) in the Project in order to access them. I am able to get the output for web methods that return just a string. However when it comes to complex data like an object /...
0
369
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 objects, and serializes them to a XMLDocument object. The serializer uses Chris Lovett's XMLNodeWriter.dll to write directly to the XMLDocument. XMLDocument.DocumentElement is passed to the Web method which takes an
0
5577
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
3
6098
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 of type System.Object to an object of type PersonWS.WorkGroupData.". I've included the wsdl of the consumed axis web service, the request/responses of the web service by the .net app and the exception and stack trace. Hoping someone can tell me...
0
9703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10316
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9125
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6842
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.