473,657 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Consume java web service (incomplete XML)

Hello, i try to consume a java web service from a asp .net page, i make
without problems the web reference tu wsdl file
http://machine/WebService/nameWebService?WSDL

in the asp .net page put the code

Dim WSConection As New WebService.name WebService
Dim XML_= WSConection .getCcompleteSi s(TextBox1.Text ) 'this return a string
with a XML

when I debug de application I can look that XML_ variable is a XML
incomplete, only the half of the XML file.

I also try this
Dim documento As New System.Xml.XmlD ocument
documento.LoadX ml(WSConection .getCcompleteSi s(TextBox1.Text ))

and I try generate a class from the webservice with the wsdl tool and call
the webservice trough the class

prompt
D:\Documents and Settings\User>w sdl /language:vb /namespace:JavaS ervice
http://machine/WebService/nameWebService?WSDL

page
Dim a As New JavaService.nam eWebService
Dim b = a.getCcompleteS is(TextBox1.Tex t)

And ALWAYS result in a XML file incomplete (exactly the same result).

anyone know how fix this ???

THANKS
Nov 23 '05 #1
2 2812
the webmethod return a string with a XML inside, and the this string is
incomplete.

example

string="<one><a >aaaa</a> <H>hhhh<H/><y>yyy"

the information is incomplete

"Mauricio Correa" <la*******@yaho o.es> escribió en el mensaje
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hello, i try to consume a java web service from a asp .net page, i make
without problems the web reference tu wsdl file
http://machine/WebService/nameWebService?WSDL

in the asp .net page put the code

Dim WSConection As New WebService.name WebService
Dim XML_= WSConection .getCcompleteSi s(TextBox1.Text ) 'this return a string with a XML

when I debug de application I can look that XML_ variable is a XML
incomplete, only the half of the XML file.

I also try this
Dim documento As New System.Xml.XmlD ocument
documento.LoadX ml(WSConection .getCcompleteSi s(TextBox1.Text ))

and I try generate a class from the webservice with the wsdl tool and call
the webservice trough the class

prompt
D:\Documents and Settings\User>w sdl /language:vb /namespace:JavaS ervice
http://machine/WebService/nameWebService?WSDL

page
Dim a As New JavaService.nam eWebService
Dim b = a.getCcompleteS is(TextBox1.Tex t)

And ALWAYS result in a XML file incomplete (exactly the same result).

anyone know how fix this ???

THANKS

Nov 23 '05 #2
have you tried a tool like proxytrace to examine what is being sent on the
wire?

"Mauricio Correa" <la*******@yaho o.es> wrote in message
news:Oo******** *****@TK2MSFTNG P12.phx.gbl...
the webmethod return a string with a XML inside, and the this string is
incomplete.

example

string="<one><a >aaaa</a> <H>hhhh<H/><y>yyy"

the information is incomplete

"Mauricio Correa" <la*******@yaho o.es> escribió en el mensaje
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hello, i try to consume a java web service from a asp .net page, i make
without problems the web reference tu wsdl file
http://machine/WebService/nameWebService?WSDL

in the asp .net page put the code

Dim WSConection As New WebService.name WebService
Dim XML_= WSConection .getCcompleteSi s(TextBox1.Text ) 'this return a

string
with a XML

when I debug de application I can look that XML_ variable is a XML
incomplete, only the half of the XML file.

I also try this
Dim documento As New System.Xml.XmlD ocument
documento.LoadX ml(WSConection .getCcompleteSi s(TextBox1.Text ))

and I try generate a class from the webservice with the wsdl tool and
call
the webservice trough the class

prompt
D:\Documents and Settings\User>w sdl /language:vb /namespace:JavaS ervice
http://machine/WebService/nameWebService?WSDL

page
Dim a As New JavaService.nam eWebService
Dim b = a.getCcompleteS is(TextBox1.Tex t)

And ALWAYS result in a XML file incomplete (exactly the same result).

anyone know how fix this ???

THANKS


Nov 23 '05 #3

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

Similar topics

2
2259
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 response back. However, when try to download the pageby creating a simple http-get client, I get server not founderror (404). Please let me know if you have any idea. Thanks in advance! ----------------------- Posted by a user from .NET 247...
4
422
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 to it...constructing the SOAP message with a class that builds the string. Then I parse the return soap message for the result. Now I wonder, can I do the same thing in a c# client. All I want to do is
4
6817
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 processing. The data looks correct in the BSTR. Can anyone help point me in the right direction on this?
0
1676
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 consume them in VB .NET I get objects with nothing in them. Interestingly, if I call a webservice that returns a string, then it all works fine. I have pasted the wsdl file for review. Any suggestions would be greatly appreciated. I used the...
5
10390
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 they need to consume this web service using HTTP. The developer's IDE is Notepad. Yeah, weird I know. How is this done? I guess if I can get it to run ASP, IDE independant, that should make them happy. Any references you can point me to?
0
958
by: saturn | last post by:
Hi, I am using C# to build a web form and need to pass these form data to Java-base Web Service. I have encountered the following problem: 1. How can I create a customer Soap Headers and envelope to wrap the xml body? 2. It requires two types of authentications: 1. Passing the username name and password thru the HTTP protocol. 2. Create a custom Soap Header with specific ID and name 3. Currently, the Java web service doesn't...
0
1152
by: Jerry Orenstein | last post by:
Hi, I hope someone can help or point me in the right direction. I'm using VB.NET 2003. I have written a web client (exe) which sends XML/string data to another company's web service, written in Java. This works; they get my data and return comfirmation or app-level error info. However, I can't get the same calls, with an identically created web reference, to work from a web service. My web service can call other
2
6443
by: adevikreates | last post by:
Greetings All! I have a Java Web service that I wrote. I need to use Classic ASP as the client for this web service. I have the following code in an asp page but I keep getting an error that states "Invalid procedure call or argument: 'doScan'" - doScan is the method in my Java Web service. When browsing to the WSDL file I don't get any errors... Set oSOAP = Server.CreateObject("MSSOAP.SoapClient") ...
0
8385
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
8303
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,...
1
8502
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5632
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
4150
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
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.