Bug in wsdl2java or Corba backend ?

2008-06-12 Thread Juergen Weber
Hi,

I think I ran into a Bug with wsdl2java or the Corba backend, I don't
know which one.

I took the sample from http://wso2.org/library/2807

and added to the IDL these structs and method:


struct MyDate {
string<10> value;
};

  struct ListContainer {
sequence datum;
 };

ListContainer getList(
in string<20> servicename
);

and ran the service and generated a Client
wsdl2java.bat -or -p test -uri
http://localhost:8080/axis2/services/mycorbaserver?wsdl


The XML that comes back over the wire looks good (this is what
TCPTunnelGui displays):

HTTP/1.1 200 OK
Date: Thu, 12 Jun 2008 15:09:29 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8; action="urn:getListResponse"

165
http://www.w3.org/2003/05/soap-envelope";>http://corba2ws/xsd";>11.02.200812.02.2008
0

but the client throws

log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement item
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at test.MycorbaserverStub.fromOM(MycorbaserverStub.java:14019)
at test.MycorbaserverStub.getList(MycorbaserverStub.java:1302)
at test.Client.main(Client.java:51)
Caused by: java.lang.Exception:
org.apache.axis2.databinding.ADBException: Unexpected subelement item
at 
test.MycorbaserverStub$GetListResponse$Factory.parse(MycorbaserverStub.java:10429)
at test.MycorbaserverStub.fromOM(MycorbaserverStub.java:14013)
... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement item
at 
test.MycorbaserverStub$GetListResponse$Factory.parse(MycorbaserverStub.java:10423)
... 3 more
Exception in thread "main"

The Java Client I used was


MycorbaserverStub.GetList getlist = new MycorbaserverStub.GetList();
getlist.setServicename("myservice");
MycorbaserverStub.GetListResponse resp = stub.getList(getlist);
MycorbaserverStub.ListContainer lc = resp.get_return();

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to dump SOAP message contents?

2008-06-06 Thread Juergen Weber
see http://articles.techrepublic.com.com/5100-10878_11-1049605.html

On Fri, Jun 6, 2008 at 3:18 PM, satish madanwad
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>   I am using WebServices with Apache Axis in my programs. I have generated
> client stubs and can prepare and  send the WebService request properly.
>
>   I am trying to dump SOAP message (XML format) which is sent to WebServer
> for processing (to examine exact message being sent). I am not able to find
> any APIs for the same.
>
>   Can you please suggest, if there is any API to dump SOAP messages sent
> from Apache Axis to WebServer?
>
> Thanks in advance,
> Satish
>
>
>
> 
> Download prohibited? No problem. CHAT from any browser, without download.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exposing CORBA Services as Web Services - Work-Around

2008-06-05 Thread Juergen Weber
Hi,

I exactly took the example from http://wso2.org/library/2807

Greetings,
Juergen


On Fri, Jun 6, 2008 at 2:26 AM, Eranga Jayasundera (එරංග)
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> Can you please send your mycorbaserver.xml file to check the
> nameserver lookup code issue?
>
> Regards,
> Eranga
>
> On Thu, Jun 5, 2008 at 11:55 PM, Juergen Weber <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> in case anybody else tries the sample from
>> Exposing CORBA Services as Web Services - Introduction to the Axis2 CORBA 
>> Module
>> http://wso2.org/library/2807
>>
>> you will run into
>> org.apache.axis2.AxisFault: unknown
>>
>> Problem is that CorbaUtil.resolveObject() throws a
>> CORBA.OBJECT_NOT_EXIST (which is swallowed by Axis, see AXIS2-3836).
>> The nameserver lookup code does not work, no idea why.
>>
>> A work-around to get the sample running is to use IOR based Corba
>> server adressing. object_to_string the Object in the server, write it
>> into a file and configure mycorbaserver.xml to use that file
>> /my/ior.txt
>>
>> Then the sample works fine.
>>
>> Cheers,
>> Juergen
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Exposing CORBA Services as Web Services - Work-Around

2008-06-05 Thread Juergen Weber
see here

http://www.javaworld.com/javaworld/jw-02-1999/jw-02-enterprise.html?page=2

or the JacORB sample in JacORB/demo/hello



On Thu, Jun 5, 2008 at 8:38 PM, Martin <[EMAIL PROTECTED]> wrote:
> Juergen
>
> Any documentation on IOR Corba server addressing?
>
> Vielen Danke
> Martin
> - Original Message - From: "Juergen Weber" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, June 05, 2008 2:25 PM
> Subject: Exposing CORBA Services as Web Services - Work-Around
>
>
>> Hi all,
>>
>> in case anybody else tries the sample from
>> Exposing CORBA Services as Web Services - Introduction to the Axis2 CORBA
>> Module
>> http://wso2.org/library/2807
>>
>> you will run into
>> org.apache.axis2.AxisFault: unknown
>>
>> Problem is that CorbaUtil.resolveObject() throws a
>> CORBA.OBJECT_NOT_EXIST (which is swallowed by Axis, see AXIS2-3836).
>> The nameserver lookup code does not work, no idea why.
>>
>> A work-around to get the sample running is to use IOR based Corba
>> server adressing. object_to_string the Object in the server, write it
>> into a file and configure mycorbaserver.xml to use that file
>> /my/ior.txt
>>
>> Then the sample works fine.
>>
>> Cheers,
>> Juergen
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Exposing CORBA Services as Web Services - Work-Around

2008-06-05 Thread Juergen Weber
Hi all,

in case anybody else tries the sample from
Exposing CORBA Services as Web Services - Introduction to the Axis2 CORBA Module
http://wso2.org/library/2807

you will run into
org.apache.axis2.AxisFault: unknown

Problem is that CorbaUtil.resolveObject() throws a
CORBA.OBJECT_NOT_EXIST (which is swallowed by Axis, see AXIS2-3836).
The nameserver lookup code does not work, no idea why.

A work-around to get the sample running is to use IOR based Corba
server adressing. object_to_string the Object in the server, write it
into a file and configure mycorbaserver.xml to use that file
/my/ior.txt

Then the sample works fine.

Cheers,
Juergen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]