472,779 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Error in calling a Java web service remote

Hi,

I have created a Java webservice which runs in IBM WebSphere appserver. I
take the WSDL-file and create a VS.NET WinForm application and calls the
service running on my PC and everything works fine.

So I deploy the webservice on a remote machine (Linux box) and I get an
error when calling the service. BUT: I can retrieve the WSDL and make a
webreference in my VS.NET project, so obviously I (or more correct: My VS.NET
project) am in contact the service. I can also execute the service remote via
XML Spy's SOAP functionality.

I wonder if anyone could point me in the right direction? Thanks!

Nov 23 '05 #1
7 2999
Hello Jorgen,
What is the error?

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I have created a Java webservice which runs in IBM WebSphere
appserver. I take the WSDL-file and create a VS.NET WinForm
application and calls the service running on my PC and everything
works fine.

So I deploy the webservice on a remote machine (Linux box) and I get
an error when calling the service. BUT: I can retrieve the WSDL and
make a webreference in my VS.NET project, so obviously I (or more
correct: My VS.NET project) am in contact the service. I can also
execute the service remote via XML Spy's SOAP functionality.

I wonder if anyone could point me in the right direction? Thanks!

Nov 23 '05 #2
Hello Dilip,

I see that the line creating the webservice fails when I try to create it on
the remote machine.

I get a reflecting error, where the inner exception is:

"There was an error reflecting type
'JavaWebServiceTestClient.adonis.IpamRequestObject '."

System.Exception {System.InvalidOperationException}

The IpamRequestObject is our parameter object to the webservice. It seems
that VS.NET has trouble with this. What I don't understand is that this works
when running on localhost ??? ("adonis" is the name on the remote machine)

"Dilip Krishnan" wrote:
Hello Jorgen,
What is the error?

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I have created a Java webservice which runs in IBM WebSphere
appserver. I take the WSDL-file and create a VS.NET WinForm
application and calls the service running on my PC and everything
works fine.

So I deploy the webservice on a remote machine (Linux box) and I get
an error when calling the service. BUT: I can retrieve the WSDL and
make a webreference in my VS.NET project, so obviously I (or more
correct: My VS.NET project) am in contact the service. I can also
execute the service remote via XML Spy's SOAP functionality.

I wonder if anyone could point me in the right direction? Thanks!


Nov 23 '05 #3
Still not clear what the error is and where it occurs.

"Jorgen Haukland" <Jo************@discussions.microsoft.com> wrote in
message news:ED**********************************@microsof t.com...
Hello Dilip,

I see that the line creating the webservice fails when I try to create it
on
the remote machine.
"Creating the webservice" - means instantiating the proxy to the webservice?
calling the webservice? or something else?

I get a reflecting error, where the inner exception is:

"There was an error reflecting type
'JavaWebServiceTestClient.adonis.IpamRequestObject '."

System.Exception {System.InvalidOperationException}

The IpamRequestObject is our parameter object to the webservice. It seems
that VS.NET has trouble with this. What I don't understand is that this
works
when running on localhost ??? ("adonis" is the name on the remote machine)

yes, changing the host shouldn't introduce this error.
Can we see
- the WSDL, and any imported XSD's
- the code you use in VS.NET
??
Nov 23 '05 #4
OK folks, thanks for the interest in this matter.

I should mention that i use VS.NET 2005 Beta 1 - could it be something here
? I should also mention that as a java guy, I am fairly noob when it comes to
..NET. My .NET project is based on the walkthrough "Consuming an XML Web
service" found in the .NET documentation - and I thought it all went pretty
well until I tried to run the thing remote ;-)

The webservice consists of three methods. The one I am trying on now is
simply to return a harcoded string. The "main" method (on which I get the
reflection error) is a more complicated one: It takes an input object as a
parameter (which among other things has an object attribute which has an
object attribute that is an array - see the WSDL-file at the end of the post)
The method itself does a lot of database calls and builds a object which is
returned.

I have created a C# WinForm project, added a web reference, pointed to the
remote WSDL-file (which it found okay) and added some buttons to invoke the
service. Here is the code for the simple project:

#region Using directives

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;

#endregion

namespace JavaWebServiceTestClient
{
partial class BlockType : Form
{
public BlockType()
{
InitializeComponent();
}

private void btnPing_Click(object sender, EventArgs e)
{
try
{
adonis.IpamService ws = new adonis.IpamService();
lblPing.Text = ws.ipamPing();
}
catch
{
lblPing.Text = "ipamPing failed miserably ...";
}

}

.... and the other simple method call.

The line:

adonis.IpamService ws = new adonis.IpamService();

is the one that gives the reflection error on the request object. I have not
tried to call the actual method yet, as you can see.

And here is the WSDL-file. It went through IBM WebSphere Application
Developers v 5.1.2 WS-I compliance test - for what that is worth ...

I aplolgize for the long answer - and for the formatting of the file ;-)

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s0="http://dto.common.ipam.incatel.com"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:s3="http://exceptions.common.ipam.incatel.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://business.server.ipam.incatel.com"
xmlns:s1="http://common.ipam.incatel.com"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://business.server.ipam.incatel.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema xmlns:sql_java="http://sql.java"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:dto="http://dto.common.ipam.incatel.com"
xmlns:impl="http://business.server.ipam.incatel.com"
xmlns:common="http://common.ipam.incatel.com"
xmlns:intf="http://business.server.ipam.incatel.com"
elementFormDefault="qualified"
targetNamespace="http://dto.common.ipam.incatel.com">
<xsd:complexType name="IpamRequestObject">
<xsd:sequence>
<xsd:element minOccurs="0" name="asgnRefId" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="hostRefName2" nillable="true"
type="xsd:string" />
<xsd:element name="function" nillable="true" type="xsd:int" />
<xsd:element minOccurs="0" name="hostRefName1" nillable="true"
type="xsd:string" />
<xsd:element name="orderId" nillable="true" type="xsd:long" />
<xsd:element minOccurs="0" name="poolName" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="preResRefId" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="ipAddressQuantity"
nillable="true" type="xsd:int" />
<xsd:element minOccurs="0" name="resRefId" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="startIpAddress" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="endDate" nillable="true"
type="xsd:date" />
<xsd:element minOccurs="0" name="startDate" nillable="true"
type="xsd:date" />
<xsd:element name="systemId" nillable="true" type="xsd:int" />
<xsd:element minOccurs="0" name="poolMapping" nillable="true"
type="dto:PoolMapping" />
<xsd:element minOccurs="0" name="ipMaskLength" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="blockType" nillable="true"
type="xsd:string" />
<xsd:element name="userRole" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PoolMapping">
<xsd:complexContent mixed="false">
<xsd:extension base="common:IpamDomainObject">
<xsd:sequence>
<xsd:element ref="dto:extTypeList" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="extTypeList" nillable="true" type="dto:ExtTypeList"
/>
<xsd:complexType name="ExtTypeList">
<xsd:complexContent mixed="false">
<xsd:extension base="common:IpamDomainObject">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="10" ref="dto:extType" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="extType" nillable="true" type="dto:ExtType" />
<xsd:complexType name="ExtType">
<xsd:complexContent mixed="false">
<xsd:extension base="common:IpamDomainObject">
<xsd:sequence>
<xsd:element name="type" nillable="true" type="xsd:string" />
<xsd:element name="value" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="IpamResponseObject">
<xsd:sequence>
<xsd:element minOccurs="0" name="asgnRefId" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="hostRefName2" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="hostRefName1" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="orderId" nillable="true"
type="xsd:long" />
<xsd:element minOccurs="0" name="poolName" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="preResRefId" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="ipAddressQuantity"
nillable="true" type="xsd:int" />
<xsd:element minOccurs="0" name="resRefId" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="startIpAddress" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="endDate" nillable="true"
type="xsd:date" />
<xsd:element minOccurs="0" name="startDate" nillable="true"
type="xsd:date" />
<xsd:element minOccurs="0" name="ipBlockMask" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="blockType" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</s:schema>
<s:schema xmlns:common="http://common.ipam.incatel.com"
xmlns:sql_java="http://sql.java" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://business.server.ipam.incatel.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:intf="http://business.server.ipam.incatel.com"
elementFormDefault="qualified"
targetNamespace="http://common.ipam.incatel.com">
<xsd:complexType name="IpamDomainObject">
<xsd:complexContent mixed="false">
<xsd:extension base="common:IpamSuper">
<xsd:sequence>
<xsd:element name="timeStamp" nillable="true"
type="xsd:anyType" />
<xsd:element name="id" nillable="true" type="xsd:int" />
<xsd:element name="changedBy" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="IpamSuper">
<xsd:sequence />
</xsd:complexType>
</s:schema>
<s:schema xmlns:dto="http://dto.common.ipam.incatel.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://business.server.ipam.incatel.com"
xmlns:intf="http://business.server.ipam.incatel.com"
elementFormDefault="qualified"
targetNamespace="http://business.server.ipam.incatel.com">
<xsd:element name="ipamWebService">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="req" nillable="true"
type="dto:IpamRequestObject" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamWebServiceResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ipamWebServiceReturn" nillable="true"
type="dto:IpamResponseObject" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamDeepPing">
<xsd:complexType>
<xsd:sequence />
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamDeepPingResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ipamDeepPingReturn" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamPing">
<xsd:complexType>
<xsd:sequence />
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamPingResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ipamPingReturn" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</s:schema>
<s:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:lang_java="http://lang.java" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://business.server.ipam.incatel.com"
xmlns:intf="http://business.server.ipam.incatel.com"
elementFormDefault="qualified"
targetNamespace="http://exceptions.common.ipam.incatel.com">
<xsd:complexType name="IpamWebServiceException">
<xsd:complexContent mixed="false">
<xsd:extension base="s3:IpamException">
<xsd:sequence>
<xsd:element name="code" nillable="true" type="xsd:string" />
<xsd:element name="detail" nillable="true" type="xsd:string" />
<xsd:element name="reason" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="IpamException" abstract="true">
<xsd:sequence>
<xsd:element name="errNo" type="xsd:int" />
<xsd:element name="details" nillable="true" type="xsd:string" />
<xsd:element name="message" nillable="true" type="xsd:string" />
<xsd:element name="severity" type="xsd:int" />
<xsd:element name="exceptionType" type="xsd:int" />
<xsd:element maxOccurs="unbounded" name="messageParameters"
nillable="true" type="xsd:string" />
<xsd:element name="causedBy" nillable="true" type="xsd:anyType" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="IpamWebServiceException"
type="s3:IpamWebServiceException" />
</s:schema>
</wsdl:types>
<wsdl:message name="ipamDeepPingRequest">
<wsdl:part name="parameters" element="tns:ipamDeepPing" />
</wsdl:message>
<wsdl:message name="ipamWebServiceRequest">
<wsdl:part name="parameters" element="tns:ipamWebService" />
</wsdl:message>
<wsdl:message name="ipamWebServiceResponse">
<wsdl:part name="parameters" element="tns:ipamWebServiceResponse" />
</wsdl:message>
<wsdl:message name="ipamPingRequest">
<wsdl:part name="parameters" element="tns:ipamPing" />
</wsdl:message>
<wsdl:message name="ipamDeepPingResponse">
<wsdl:part name="parameters" element="tns:ipamDeepPingResponse" />
</wsdl:message>
<wsdl:message name="IpamWebServiceException">
<wsdl:part name="fault" element="s3:IpamWebServiceException" />
</wsdl:message>
<wsdl:message name="ipamPingResponse">
<wsdl:part name="parameters" element="tns:ipamPingResponse" />
</wsdl:message>
<wsdl:portType name="Ipam">
<wsdl:operation name="ipamWebService">
<wsdl:input name="ipamWebServiceRequest"
message="tns:ipamWebServiceRequest" />
<wsdl:output name="ipamWebServiceResponse"
message="tns:ipamWebServiceResponse" />
<wsdl:fault name="IpamWebServiceException"
message="tns:IpamWebServiceException" />
</wsdl:operation>
<wsdl:operation name="ipamDeepPing">
<wsdl:input name="ipamDeepPingRequest"
message="tns:ipamDeepPingRequest" />
<wsdl:output name="ipamDeepPingResponse"
message="tns:ipamDeepPingResponse" />
<wsdl:fault name="IpamWebServiceException"
message="tns:IpamWebServiceException" />
</wsdl:operation>
<wsdl:operation name="ipamPing">
<wsdl:input name="ipamPingRequest" message="tns:ipamPingRequest" />
<wsdl:output name="ipamPingResponse" message="tns:ipamPingResponse" />
<wsdl:fault name="IpamWebServiceException"
message="tns:IpamWebServiceException" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="IpamSoapBinding" type="tns:Ipam">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdl:operation name="ipamWebService">
<soap:operation soapAction="" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="IpamWebServiceException">
<soap:fault use="literal" name="IpamWebServiceException"
namespace="" encodingStyle="http://schemas.xmlsoap.org/soap/encoding" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="ipamDeepPing">
<soap:operation soapAction="" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="IpamWebServiceException">
<soap:fault use="literal" name="IpamWebServiceException"
namespace="" encodingStyle="http://schemas.xmlsoap.org/soap/encoding" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="ipamPing">
<soap:operation soapAction="" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="IpamWebServiceException">
<soap:fault use="literal" name="IpamWebServiceException"
namespace="" encodingStyle="http://schemas.xmlsoap.org/soap/encoding" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="IpamService">
<wsdl:port name="Ipam" binding="tns:IpamSoapBinding">
<soap:address location="http://adonis:9080/IPAM/services/Ipam" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

"Creating the webservice" - means instantiating the proxy to the webservice?
calling the webservice? or something else?

I get a reflecting error, where the inner exception is:

"There was an error reflecting type
'JavaWebServiceTestClient.adonis.IpamRequestObject '."

System.Exception {System.InvalidOperationException}


The IpamRequestObject is our parameter object to the webservice. It seems
that VS.NET has trouble with this. What I don't understand is that this
works
when running on localhost ??? ("adonis" is the name on the remote machine)

yes, changing the host shouldn't introduce this error.
Can we see
- the WSDL, and any imported XSD's
- the code you use in VS.NET
??

Nov 23 '05 #5
hmm, don't know, I haven't tried the Beta 1.
Can you try a simpler interface first? If that works, Gradually expand it
until it breaks - then find out what is breaking .NET.

-D
"Jorgen Haukland" <Jo************@discussions.microsoft.com> wrote in
message news:3E**********************************@microsof t.com...
OK folks, thanks for the interest in this matter.

I should mention that i use VS.NET 2005 Beta 1 - could it be something
here
? I should also mention that as a java guy, I am fairly noob when it comes
to
.NET. My .NET project is based on the walkthrough "Consuming an XML Web
service" found in the .NET documentation - and I thought it all went
pretty
well until I tried to run the thing remote ;-)

The webservice consists of three methods. The one I am trying on now is
simply to return a harcoded string. The "main" method (on which I get the
reflection error) is a more complicated one: It takes an input object as a
parameter (which among other things has an object attribute which has an
object attribute that is an array - see the WSDL-file at the end of the
post)
The method itself does a lot of database calls and builds a object which
is
returned.

I have created a C# WinForm project, added a web reference, pointed to the
remote WSDL-file (which it found okay) and added some buttons to invoke
the
service. Here is the code for the simple project:

#region Using directives

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;

#endregion

namespace JavaWebServiceTestClient
{
partial class BlockType : Form
{
public BlockType()
{
InitializeComponent();
}

private void btnPing_Click(object sender, EventArgs e)
{
try
{
adonis.IpamService ws = new adonis.IpamService();
lblPing.Text = ws.ipamPing();
}
catch
{
lblPing.Text = "ipamPing failed miserably ...";
}

}

... and the other simple method call.

The line:

adonis.IpamService ws = new adonis.IpamService();

is the one that gives the reflection error on the request object. I have
not
tried to call the actual method yet, as you can see.

And here is the WSDL-file. It went through IBM WebSphere Application
Developers v 5.1.2 WS-I compliance test - for what that is worth ...

I aplolgize for the long answer - and for the formatting of the file ;-)

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s0="http://dto.common.ipam.incatel.com"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:s3="http://exceptions.common.ipam.incatel.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://business.server.ipam.incatel.com"
xmlns:s1="http://common.ipam.incatel.com"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://business.server.ipam.incatel.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema xmlns:sql_java="http://sql.java"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:dto="http://dto.common.ipam.incatel.com"
xmlns:impl="http://business.server.ipam.incatel.com"
xmlns:common="http://common.ipam.incatel.com"
xmlns:intf="http://business.server.ipam.incatel.com"
elementFormDefault="qualified"
targetNamespace="http://dto.common.ipam.incatel.com">
<xsd:complexType name="IpamRequestObject">
<xsd:sequence>
<xsd:element minOccurs="0" name="asgnRefId" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="hostRefName2" nillable="true"
type="xsd:string" />
<xsd:element name="function" nillable="true" type="xsd:int" />
<xsd:element minOccurs="0" name="hostRefName1" nillable="true"
type="xsd:string" />
<xsd:element name="orderId" nillable="true" type="xsd:long" />
<xsd:element minOccurs="0" name="poolName" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="preResRefId" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="ipAddressQuantity"
nillable="true" type="xsd:int" />
<xsd:element minOccurs="0" name="resRefId" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="startIpAddress" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="endDate" nillable="true"
type="xsd:date" />
<xsd:element minOccurs="0" name="startDate" nillable="true"
type="xsd:date" />
<xsd:element name="systemId" nillable="true" type="xsd:int" />
<xsd:element minOccurs="0" name="poolMapping" nillable="true"
type="dto:PoolMapping" />
<xsd:element minOccurs="0" name="ipMaskLength" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="blockType" nillable="true"
type="xsd:string" />
<xsd:element name="userRole" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PoolMapping">
<xsd:complexContent mixed="false">
<xsd:extension base="common:IpamDomainObject">
<xsd:sequence>
<xsd:element ref="dto:extTypeList" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="extTypeList" nillable="true"
type="dto:ExtTypeList"
/>
<xsd:complexType name="ExtTypeList">
<xsd:complexContent mixed="false">
<xsd:extension base="common:IpamDomainObject">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="10" ref="dto:extType"
/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="extType" nillable="true" type="dto:ExtType" />
<xsd:complexType name="ExtType">
<xsd:complexContent mixed="false">
<xsd:extension base="common:IpamDomainObject">
<xsd:sequence>
<xsd:element name="type" nillable="true" type="xsd:string" />
<xsd:element name="value" nillable="true" type="xsd:string"
/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="IpamResponseObject">
<xsd:sequence>
<xsd:element minOccurs="0" name="asgnRefId" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="hostRefName2" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="hostRefName1" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="orderId" nillable="true"
type="xsd:long" />
<xsd:element minOccurs="0" name="poolName" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="preResRefId" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="ipAddressQuantity"
nillable="true" type="xsd:int" />
<xsd:element minOccurs="0" name="resRefId" nillable="true"
type="xsd:int" />
<xsd:element minOccurs="0" name="startIpAddress" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="endDate" nillable="true"
type="xsd:date" />
<xsd:element minOccurs="0" name="startDate" nillable="true"
type="xsd:date" />
<xsd:element minOccurs="0" name="ipBlockMask" nillable="true"
type="xsd:string" />
<xsd:element minOccurs="0" name="blockType" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</s:schema>
<s:schema xmlns:common="http://common.ipam.incatel.com"
xmlns:sql_java="http://sql.java" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://business.server.ipam.incatel.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:intf="http://business.server.ipam.incatel.com"
elementFormDefault="qualified"
targetNamespace="http://common.ipam.incatel.com">
<xsd:complexType name="IpamDomainObject">
<xsd:complexContent mixed="false">
<xsd:extension base="common:IpamSuper">
<xsd:sequence>
<xsd:element name="timeStamp" nillable="true"
type="xsd:anyType" />
<xsd:element name="id" nillable="true" type="xsd:int" />
<xsd:element name="changedBy" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="IpamSuper">
<xsd:sequence />
</xsd:complexType>
</s:schema>
<s:schema xmlns:dto="http://dto.common.ipam.incatel.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://business.server.ipam.incatel.com"
xmlns:intf="http://business.server.ipam.incatel.com"
elementFormDefault="qualified"
targetNamespace="http://business.server.ipam.incatel.com">
<xsd:element name="ipamWebService">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="req" nillable="true"
type="dto:IpamRequestObject" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamWebServiceResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ipamWebServiceReturn" nillable="true"
type="dto:IpamResponseObject" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamDeepPing">
<xsd:complexType>
<xsd:sequence />
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamDeepPingResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ipamDeepPingReturn" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamPing">
<xsd:complexType>
<xsd:sequence />
</xsd:complexType>
</xsd:element>
<xsd:element name="ipamPingResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ipamPingReturn" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</s:schema>
<s:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:lang_java="http://lang.java"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://business.server.ipam.incatel.com"
xmlns:intf="http://business.server.ipam.incatel.com"
elementFormDefault="qualified"
targetNamespace="http://exceptions.common.ipam.incatel.com">
<xsd:complexType name="IpamWebServiceException">
<xsd:complexContent mixed="false">
<xsd:extension base="s3:IpamException">
<xsd:sequence>
<xsd:element name="code" nillable="true" type="xsd:string" />
<xsd:element name="detail" nillable="true" type="xsd:string"
/>
<xsd:element name="reason" nillable="true" type="xsd:string"
/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="IpamException" abstract="true">
<xsd:sequence>
<xsd:element name="errNo" type="xsd:int" />
<xsd:element name="details" nillable="true" type="xsd:string" />
<xsd:element name="message" nillable="true" type="xsd:string" />
<xsd:element name="severity" type="xsd:int" />
<xsd:element name="exceptionType" type="xsd:int" />
<xsd:element maxOccurs="unbounded" name="messageParameters"
nillable="true" type="xsd:string" />
<xsd:element name="causedBy" nillable="true" type="xsd:anyType"
/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="IpamWebServiceException"
type="s3:IpamWebServiceException" />
</s:schema>
</wsdl:types>
<wsdl:message name="ipamDeepPingRequest">
<wsdl:part name="parameters" element="tns:ipamDeepPing" />
</wsdl:message>
<wsdl:message name="ipamWebServiceRequest">
<wsdl:part name="parameters" element="tns:ipamWebService" />
</wsdl:message>
<wsdl:message name="ipamWebServiceResponse">
<wsdl:part name="parameters" element="tns:ipamWebServiceResponse" />
</wsdl:message>
<wsdl:message name="ipamPingRequest">
<wsdl:part name="parameters" element="tns:ipamPing" />
</wsdl:message>
<wsdl:message name="ipamDeepPingResponse">
<wsdl:part name="parameters" element="tns:ipamDeepPingResponse" />
</wsdl:message>
<wsdl:message name="IpamWebServiceException">
<wsdl:part name="fault" element="s3:IpamWebServiceException" />
</wsdl:message>
<wsdl:message name="ipamPingResponse">
<wsdl:part name="parameters" element="tns:ipamPingResponse" />
</wsdl:message>
<wsdl:portType name="Ipam">
<wsdl:operation name="ipamWebService">
<wsdl:input name="ipamWebServiceRequest"
message="tns:ipamWebServiceRequest" />
<wsdl:output name="ipamWebServiceResponse"
message="tns:ipamWebServiceResponse" />
<wsdl:fault name="IpamWebServiceException"
message="tns:IpamWebServiceException" />
</wsdl:operation>
<wsdl:operation name="ipamDeepPing">
<wsdl:input name="ipamDeepPingRequest"
message="tns:ipamDeepPingRequest" />
<wsdl:output name="ipamDeepPingResponse"
message="tns:ipamDeepPingResponse" />
<wsdl:fault name="IpamWebServiceException"
message="tns:IpamWebServiceException" />
</wsdl:operation>
<wsdl:operation name="ipamPing">
<wsdl:input name="ipamPingRequest" message="tns:ipamPingRequest" />
<wsdl:output name="ipamPingResponse" message="tns:ipamPingResponse"
/>
<wsdl:fault name="IpamWebServiceException"
message="tns:IpamWebServiceException" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="IpamSoapBinding" type="tns:Ipam">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdl:operation name="ipamWebService">
<soap:operation soapAction="" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="IpamWebServiceException">
<soap:fault use="literal" name="IpamWebServiceException"
namespace="" encodingStyle="http://schemas.xmlsoap.org/soap/encoding" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="ipamDeepPing">
<soap:operation soapAction="" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="IpamWebServiceException">
<soap:fault use="literal" name="IpamWebServiceException"
namespace="" encodingStyle="http://schemas.xmlsoap.org/soap/encoding" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="ipamPing">
<soap:operation soapAction="" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="IpamWebServiceException">
<soap:fault use="literal" name="IpamWebServiceException"
namespace="" encodingStyle="http://schemas.xmlsoap.org/soap/encoding" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="IpamService">
<wsdl:port name="Ipam" binding="tns:IpamSoapBinding">
<soap:address location="http://adonis:9080/IPAM/services/Ipam" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

"Creating the webservice" - means instantiating the proxy to the
webservice?
calling the webservice? or something else?
>
> I get a reflecting error, where the inner exception is:
>
> "There was an error reflecting type
> 'JavaWebServiceTestClient.adonis.IpamRequestObject '."
>
> System.Exception {System.InvalidOperationException}
>


> The IpamRequestObject is our parameter object to the webservice. It
> seems
> that VS.NET has trouble with this. What I don't understand is that this
> works
> when running on localhost ??? ("adonis" is the name on the remote
> machine)
>

yes, changing the host shouldn't introduce this error.
Can we see
- the WSDL, and any imported XSD's
- the code you use in VS.NET
??

Nov 23 '05 #6
Hello,

OK - I'll try that, when I have the time. In the meanwhile; do you know any
other places where I could find information on the matter?

-jh

"Dino Chiesa [Microsoft]" wrote:
hmm, don't know, I haven't tried the Beta 1.
Can you try a simpler interface first? If that works, Gradually expand it
until it breaks - then find out what is breaking .NET.

-D

Nov 23 '05 #7
for an article on web services interop between Websphere and .NET, go to
http://msdn.microsoft.com/vstudio/ja...p/default.aspx

But I have not seen the case where the local works and the remote does not.
In theory that should be independent of the actual webservice endpoints.
in other words, it is a networking issue, not a webservices issue. Do you
have the proper proxy set up? are you specifying the appropriate URL
endpoint? is the remote endpoint running the most up to date version of the
webservice (does it agree with the WSDL you used to build the client)? etc
etc

-Dino
"Jorgen Haukland" <Jo************@discussions.microsoft.com> wrote in
message news:F3**********************************@microsof t.com...
Hello,

OK - I'll try that, when I have the time. In the meanwhile; do you know
any
other places where I could find information on the matter?

-jh

"Dino Chiesa [Microsoft]" wrote:
hmm, don't know, I haven't tried the Beta 1.
Can you try a simpler interface first? If that works, Gradually expand
it
until it breaks - then find out what is breaking .NET.

-D

Nov 23 '05 #8

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

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
15
by: warlord | last post by:
I have a windows client app that is trying to download a file from a web server but I always get the following error when I call the GetResponse method of the Request object. The remote server...
0
by: Francois Guerin | last post by:
I have an application calling a web service on a different machine. The application code runs under a local user account on the application server. The account (identical username/password) is...
0
by: Nick | last post by:
Hi all, We currently have a web service developed in Java, which we're calling from a dot net coded windows form. this web service is returning an object of type abc (say). Now, when we try and...
2
by: RdS | last post by:
Hello, I use sourcesafe and vb 2003 for my dev environment. on the sourcesafe server I also have sql2005 and reporting services installed. The web app references this sql server for db. When...
7
by: GD | last post by:
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test...
6
by: meru | last post by:
Hi The highlighted below is the sample code I used for calling my stored procedure. Callable statement cstmt = conn.prepareCall( BEGIN STOREDPROCNAME(?,?,?);END;); ArrayDescriptor...
0
by: louis08 | last post by:
When i connect to the server i get a BufferOverflowException, HELP!!!! This is where the error is thrown. final Transport transport = new TCPTransport(client);
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{

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.