You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by ni...@opensource.lk on 2004/08/16 14:38:53 UTC

Re: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Hi Samisa,

That's a good idea. I shall fix it.

I think that ANON_TOKEN would cause problems for the method name as well
and I trying to figure it out too .

Regards,
Nithya.

>
>  Nithya,
>     In place of:
>      attribName.lastIndexOf('>')
>  it is better to use:
>      attribName.lastIndexOf(SymbolTable.ANON_TOKEN)
>
>  (In case Axis Java team decide to change the character for ANON_TOKEN)
>
>  Also, have you got any clues as to the other places where ANON_TOKEN
> would cause trouble?
>
>  Thanks,
>  Samisa...
>
>> --- nithya@opensource.lk wrote:
>>
>> > Hi Samisa,
>> >
>> > As SOAP message do not correspond to the WSDL due to the fix to handle
>> > ANON_TOKEN similar to the way it is handled in Axis Java code I am
>> working
>> > on reverting the tool.
>> >
>> > Regards,
>> > Nithya.
>> >
>> > > Hi All,
>> > >     While trying to compile the generated code for the UDDI WSDL
>> file
>> > > (inquire_v2.wsdl) I got into
>> > > trouble with the tool generating code with 'operator' keyword.
>> > >
>> > >     I fixed this and also inclided the code to handle ANON_TOKEN
>> similar
>> > > to the way it is handled
>> > > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java
>> file)
>> > >
>> > >    This made many problems go away with this WSDL file.
>> > >    However I still get problems related to the inclusion of non
>> existant
>> > > files. (see below)
>> > >
>> > > Thanks,
>> > > Samisa...
>> > >
>> > >
>> > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
>> > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
>> > > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
>> > Inquire.h:74:31: businessKey_Array.h: No such file or directory
>> > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
>> > > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > __________________________________
>> > > Do you Yahoo!?
>> > > Read only the mail you want - Yahoo! Mail SpamGuard.
>> > > http://promotions.yahoo.com/new_mail
>> > >
>> > >
>> >
>> >
>> >
>> >
>>
>>
>>
>>
>> __________________________________
>> Do you Yahoo!?
>> New and Improved Yahoo! Mail - Send 10MB messages!
>> http://promotions.yahoo.com/new_mail
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>


Re: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi All,
    As per Susantha's suggestion, I fixed the header file inclusion problems (and commited), using
a typedef for the types having xsd__string as the base type.

    I did test this with the existing samples and did not find any problems.
    This makes the UDDI WSDL (inquire_v2.wsdl) to compile without problems. However, we need the
solution currently being implemented by Susantha to make the whole thing work properly.

    Please report problems if you find any problems with the fix that I have proviced.
Thanks,
Samisa...

--- nithya@opensource.lk wrote:

> Hi Samisa,
> 
> That's a good idea. I shall fix it.
> 
> I think that ANON_TOKEN would cause problems for the method name as well
> and I trying to figure it out too .
> 
> Regards,
> Nithya.
> 
> >
> >  Nithya,
> >     In place of:
> >      attribName.lastIndexOf('>')
> >  it is better to use:
> >      attribName.lastIndexOf(SymbolTable.ANON_TOKEN)
> >
> >  (In case Axis Java team decide to change the character for ANON_TOKEN)
> >
> >  Also, have you got any clues as to the other places where ANON_TOKEN
> > would cause trouble?
> >
> >  Thanks,
> >  Samisa...
> >
> >> --- nithya@opensource.lk wrote:
> >>
> >> > Hi Samisa,
> >> >
> >> > As SOAP message do not correspond to the WSDL due to the fix to handle
> >> > ANON_TOKEN similar to the way it is handled in Axis Java code I am
> >> working
> >> > on reverting the tool.
> >> >
> >> > Regards,
> >> > Nithya.
> >> >
> >> > > Hi All,
> >> > >     While trying to compile the generated code for the UDDI WSDL
> >> file
> >> > > (inquire_v2.wsdl) I got into
> >> > > trouble with the tool generating code with 'operator' keyword.
> >> > >
> >> > >     I fixed this and also inclided the code to handle ANON_TOKEN
> >> similar
> >> > > to the way it is handled
> >> > > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java
> >> file)
> >> > >
> >> > >    This made many problems go away with this WSDL file.
> >> > >    However I still get problems related to the inclusion of non
> >> existant
> >> > > files. (see below)
> >> > >
> >> > > Thanks,
> >> > > Samisa...
> >> > >
> >> > >
> >> > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> >> > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> >> > > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> >> > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> >> > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> >> > > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > __________________________________
> >> > > Do you Yahoo!?
> >> > > Read only the mail you want - Yahoo! Mail SpamGuard.
> >> > > http://promotions.yahoo.com/new_mail
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >>
> >> __________________________________
> >> Do you Yahoo!?
> >> New and Improved Yahoo! Mail - Send 10MB messages!
> >> http://promotions.yahoo.com/new_mail
> >>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> 
> 



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

Re: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi All,
    As per Susantha's suggestion, I fixed the header file inclusion problems (and commited), using
a typedef for the types having xsd__string as the base type.

    I did test this with the existing samples and did not find any problems.
    This makes the UDDI WSDL (inquire_v2.wsdl) to compile without problems. However, we need the
solution currently being implemented by Susantha to make the whole thing work properly.

    Please report problems if you find any problems with the fix that I have proviced.
Thanks,
Samisa...

--- nithya@opensource.lk wrote:

> Hi Samisa,
> 
> That's a good idea. I shall fix it.
> 
> I think that ANON_TOKEN would cause problems for the method name as well
> and I trying to figure it out too .
> 
> Regards,
> Nithya.
> 
> >
> >  Nithya,
> >     In place of:
> >      attribName.lastIndexOf('>')
> >  it is better to use:
> >      attribName.lastIndexOf(SymbolTable.ANON_TOKEN)
> >
> >  (In case Axis Java team decide to change the character for ANON_TOKEN)
> >
> >  Also, have you got any clues as to the other places where ANON_TOKEN
> > would cause trouble?
> >
> >  Thanks,
> >  Samisa...
> >
> >> --- nithya@opensource.lk wrote:
> >>
> >> > Hi Samisa,
> >> >
> >> > As SOAP message do not correspond to the WSDL due to the fix to handle
> >> > ANON_TOKEN similar to the way it is handled in Axis Java code I am
> >> working
> >> > on reverting the tool.
> >> >
> >> > Regards,
> >> > Nithya.
> >> >
> >> > > Hi All,
> >> > >     While trying to compile the generated code for the UDDI WSDL
> >> file
> >> > > (inquire_v2.wsdl) I got into
> >> > > trouble with the tool generating code with 'operator' keyword.
> >> > >
> >> > >     I fixed this and also inclided the code to handle ANON_TOKEN
> >> similar
> >> > > to the way it is handled
> >> > > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java
> >> file)
> >> > >
> >> > >    This made many problems go away with this WSDL file.
> >> > >    However I still get problems related to the inclusion of non
> >> existant
> >> > > files. (see below)
> >> > >
> >> > > Thanks,
> >> > > Samisa...
> >> > >
> >> > >
> >> > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> >> > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> >> > > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> >> > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> >> > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> >> > > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > __________________________________
> >> > > Do you Yahoo!?
> >> > > Read only the mail you want - Yahoo! Mail SpamGuard.
> >> > > http://promotions.yahoo.com/new_mail
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >>
> >> __________________________________
> >> Do you Yahoo!?
> >> New and Improved Yahoo! Mail - Send 10MB messages!
> >> http://promotions.yahoo.com/new_mail
> >>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> 
> 



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

Re: Stub fails to operate correctly with inquire_v2.wsdl service

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Anyone who is interested in using inquire v2 UDDI service with an Axis C++ client can have a look
at the sample given in tests/client/uddi_inquire.

I have been able to use the 'get' methods successfully. However I did not test the 'find' methods
as I could not find a suitable test data set.

For more information how to use the client please have a look at
tests/client/uddi_inquire/readme.txt

Please try this out and report bugs (and hopefully patches) :-)

Thanks,
Samisa...


--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> I managed to get the client code working with 
> http://www-3.ibm.com/services/uddi/testregistry/inquiryapi
> 
> So the generated code and my client code is correct.
> At last; Axis C++ client side works for UDDI WSDL. But there seems to be problems in the
> generated
> server side code.
> 
> Samisa...
> 
> --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> 
> > Is this because it is a "private.uddi.operator"?
> > If so, where can I find a public operator? Any clues please....
> > Samisa...
> > 
> > 
> > Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > Hi All,
> > I have been trying to get the C++ client working with service at
> > http://uddi.ibm.com/beta/inquiryapi.
> > 
> > I get a SOAP fault with "E_fatalError (10500) Serious technical error has occurred while
> > processing the request." I am not sure if this is something to do with the format of the SOAP
> > message C++ client send to the server.
> > 
> > I have given below the request, response and the code that I used.
> > 
> > Please help figure out what is wrong. 
> > 
> > (please note that I have hardcoded the tModel key and generic values in the test code)
> > 
> > Thanks,
> > Samisa...
> > 
> > SOAP request:
> > POST http://uddi.ibm.com/beta/inquiryapi HTTP/1.0
> > 
> > Host: uddi.ibm.com:9090
> > 
> > Content-Type: text/xml; charset=UTF-8
> > 
> > SOAPAction: "get_tModelDetail"
> > 
> > Content-Length: 430
> > 
> > 
> > 
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xmlns:ns1="urn:uddi-org:api_v2"
> > generic="1.0">
> > UUID:193AD561-1069-4A01-91AC-6B1B6883745A
> > 
> > 
> > SOAP response:
> > HTTP/1.1 500 Internal Server Error
> > 
> > Date: Tue, 24 Aug 2004 08:15:56 GMT
> > 
> > Server: IBM_HTTP_SERVER/1.3.28 Apache/1.3.28 (Unix)
> > 
> > Content-Length: 525
> > 
> > Content-Type: text/xml; charset=utf-8
> > 
> > Content-Language: en-US
> > 
> > Connection: close
> > 
> > 
> > 
> > xmlns="http://schemas.xmlsoap.org/soap/envelope/">xmlns="">ClientClient
> > Errorxmlns="">operator="private.uddi.operator">
> > 
> > E_fatalError (10500) Serious technical error has occurred while
> > processing the request. 
> > 
> > Client code:
> > #define ARRAYSIZE 1
> > 
> > char endpoint[256];
> > 
> > int
> > main(int argc, char *argv[])
> > {
> > if( argc < 2 )
> > {
> > printf( "Usage: %s [endpoint] ", argv[0]);
> > exit(0);
> > }
> > 
> > sprintf(endpoint, argv[1]);
> > Inquire *ws = new Inquire(endpoint);
> > //ws->setProxy("localhost", 9090);
> > 
> > tModelKey_Array arrtModelKeys;
> > arrtModelKeys.m_Array = new char *[ARRAYSIZE];
> > arrtModelKeys.m_Size = ARRAYSIZE;
> > char buffer[100];
> > sprintf(buffer, "UUID:193AD561-1069-4A01-91AC-6B1B6883745A");
> > 
> > for (int i = 0; i < ARRAYSIZE; i++)
> > {
> > arrtModelKeys.m_Array[i] = buffer;
> > }
> > char* name = "2.0";
> > printf("invoking get_tModelDetail...\n");
> > 
> > try
> > {
> > tModel_Array result = ws->get_tModelDetail(arrtModelKeys, name);
> > printf("tModel_Array size = %d", result.m_Size);
> > }
> > catch(InquireService_AxisClientException& e)
> > {
> > printf("Exception caught : %s\n", e.what());
> > printf("Exception caught : %d\n", e.getExceptionCode());
> > }
> > catch(AxisException& e)
> > {
> > printf("Exception caught : %s\n", e.what());
> > }
> > }
> > 
> > 
> > 
> > 
> > _______________________________
> > Do you Yahoo!?
> > Win 1 of 4,000 free domain names from Yahoo! Enter now.
> > http://promotions.yahoo.com/goldrush
> > 
> > 		
> > ---------------------------------
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - 100MB free storage!
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Y! Messenger - Communicate in real time. Download now. 
> http://messenger.yahoo.com
> 



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

Re: Stub fails to operate correctly with inquire_v2.wsdl service

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
I managed to get the client code working with 
http://www-3.ibm.com/services/uddi/testregistry/inquiryapi

So the generated code and my client code is correct.
At last; Axis C++ client side works for UDDI WSDL. But there seems to be problems in the generated
server side code.

Samisa...

--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> Is this because it is a "private.uddi.operator"?
> If so, where can I find a public operator? Any clues please....
> Samisa...
> 
> 
> Samisa Abeysinghe <sa...@yahoo.com> wrote:
> Hi All,
> I have been trying to get the C++ client working with service at
> http://uddi.ibm.com/beta/inquiryapi.
> 
> I get a SOAP fault with "E_fatalError (10500) Serious technical error has occurred while
> processing the request." I am not sure if this is something to do with the format of the SOAP
> message C++ client send to the server.
> 
> I have given below the request, response and the code that I used.
> 
> Please help figure out what is wrong. 
> 
> (please note that I have hardcoded the tModel key and generic values in the test code)
> 
> Thanks,
> Samisa...
> 
> SOAP request:
> POST http://uddi.ibm.com/beta/inquiryapi HTTP/1.0
> 
> Host: uddi.ibm.com:9090
> 
> Content-Type: text/xml; charset=UTF-8
> 
> SOAPAction: "get_tModelDetail"
> 
> Content-Length: 430
> 
> 
> 
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xmlns:ns1="urn:uddi-org:api_v2"
> generic="1.0">
> UUID:193AD561-1069-4A01-91AC-6B1B6883745A
> 
> 
> SOAP response:
> HTTP/1.1 500 Internal Server Error
> 
> Date: Tue, 24 Aug 2004 08:15:56 GMT
> 
> Server: IBM_HTTP_SERVER/1.3.28 Apache/1.3.28 (Unix)
> 
> Content-Length: 525
> 
> Content-Type: text/xml; charset=utf-8
> 
> Content-Language: en-US
> 
> Connection: close
> 
> 
> 
> xmlns="http://schemas.xmlsoap.org/soap/envelope/">xmlns="">ClientClient
> Errorxmlns="">operator="private.uddi.operator">
> 
> E_fatalError (10500) Serious technical error has occurred while
> processing the request. 
> 
> Client code:
> #define ARRAYSIZE 1
> 
> char endpoint[256];
> 
> int
> main(int argc, char *argv[])
> {
> if( argc < 2 )
> {
> printf( "Usage: %s [endpoint] ", argv[0]);
> exit(0);
> }
> 
> sprintf(endpoint, argv[1]);
> Inquire *ws = new Inquire(endpoint);
> //ws->setProxy("localhost", 9090);
> 
> tModelKey_Array arrtModelKeys;
> arrtModelKeys.m_Array = new char *[ARRAYSIZE];
> arrtModelKeys.m_Size = ARRAYSIZE;
> char buffer[100];
> sprintf(buffer, "UUID:193AD561-1069-4A01-91AC-6B1B6883745A");
> 
> for (int i = 0; i < ARRAYSIZE; i++)
> {
> arrtModelKeys.m_Array[i] = buffer;
> }
> char* name = "2.0";
> printf("invoking get_tModelDetail...\n");
> 
> try
> {
> tModel_Array result = ws->get_tModelDetail(arrtModelKeys, name);
> printf("tModel_Array size = %d", result.m_Size);
> }
> catch(InquireService_AxisClientException& e)
> {
> printf("Exception caught : %s\n", e.what());
> printf("Exception caught : %d\n", e.getExceptionCode());
> }
> catch(AxisException& e)
> {
> printf("Exception caught : %s\n", e.what());
> }
> }
> 
> 
> 
> 
> _______________________________
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now.
> http://promotions.yahoo.com/goldrush
> 
> 		
> ---------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!



		
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com

Re: Stub fails to operate correctly with inquire_v2.wsdl service

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Is this because it is a "private.uddi.operator"?
If so, where can I find a public operator? Any clues please....
Samisa...


Samisa Abeysinghe <sa...@yahoo.com> wrote:
Hi All,
I have been trying to get the C++ client working with service at
http://uddi.ibm.com/beta/inquiryapi.

I get a SOAP fault with "E_fatalError (10500) Serious technical error has occurred while
processing the request." I am not sure if this is something to do with the format of the SOAP
message C++ client send to the server.

I have given below the request, response and the code that I used.

Please help figure out what is wrong. 

(please note that I have hardcoded the tModel key and generic values in the test code)

Thanks,
Samisa...

SOAP request:
POST http://uddi.ibm.com/beta/inquiryapi HTTP/1.0

Host: uddi.ibm.com:9090

Content-Type: text/xml; charset=UTF-8

SOAPAction: "get_tModelDetail"

Content-Length: 430



xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xmlns:ns1="urn:uddi-org:api_v2" generic="1.0">
UUID:193AD561-1069-4A01-91AC-6B1B6883745A


SOAP response:
HTTP/1.1 500 Internal Server Error

Date: Tue, 24 Aug 2004 08:15:56 GMT

Server: IBM_HTTP_SERVER/1.3.28 Apache/1.3.28 (Unix)

Content-Length: 525

Content-Type: text/xml; charset=utf-8

Content-Language: en-US

Connection: close



xmlns="http://schemas.xmlsoap.org/soap/envelope/">xmlns="">ClientClient Errorxmlns="">operator="private.uddi.operator">

E_fatalError (10500) Serious technical error has occurred while
processing the request. 

Client code:
#define ARRAYSIZE 1

char endpoint[256];

int
main(int argc, char *argv[])
{
if( argc < 2 )
{
printf( "Usage: %s [endpoint] ", argv[0]);
exit(0);
}

sprintf(endpoint, argv[1]);
Inquire *ws = new Inquire(endpoint);
//ws->setProxy("localhost", 9090);

tModelKey_Array arrtModelKeys;
arrtModelKeys.m_Array = new char *[ARRAYSIZE];
arrtModelKeys.m_Size = ARRAYSIZE;
char buffer[100];
sprintf(buffer, "UUID:193AD561-1069-4A01-91AC-6B1B6883745A");

for (int i = 0; i < ARRAYSIZE; i++)
{
arrtModelKeys.m_Array[i] = buffer;
}
char* name = "2.0";
printf("invoking get_tModelDetail...\n");

try
{
tModel_Array result = ws->get_tModelDetail(arrtModelKeys, name);
printf("tModel_Array size = %d", result.m_Size);
}
catch(InquireService_AxisClientException& e)
{
printf("Exception caught : %s\n", e.what());
printf("Exception caught : %d\n", e.getExceptionCode());
}
catch(AxisException& e)
{
printf("Exception caught : %s\n", e.what());
}
}




_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Stub fails to operate correctly with inquire_v2.wsdl service

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi All,
    I have been trying to get the C++ client working with service at
http://uddi.ibm.com/beta/inquiryapi.

    I get a SOAP fault with "E_fatalError (10500) Serious technical error has occurred while
processing the request." I am not sure if this is something to do with the format of the SOAP
message C++ client send to the server.

    I have given below the request, response and the code that I used.

    Please help figure out what is wrong. 

(please note that I have hardcoded the tModel key and generic values in the test code)

Thanks,
Samisa...

SOAP request:
POST http://uddi.ibm.com/beta/inquiryapi HTTP/1.0

Host: uddi.ibm.com:9090

Content-Type: text/xml; charset=UTF-8

SOAPAction: "get_tModelDetail"

Content-Length: 430



<?xml version='1.0' encoding='utf-8' ?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><ns1:get_tModelDetail
xmlns:ns1="urn:uddi-org:api_v2" generic="1.0">
<ns1:tModelKey>UUID:193AD561-1069-4A01-91AC-6B1B6883745A</ns1:tModelKey></ns1:get_tModelDetail>
</SOAP-ENV:Body></SOAP-ENV:Envelope>

SOAP response:
HTTP/1.1 500 Internal Server Error

Date: Tue, 24 Aug 2004 08:15:56 GMT

Server: IBM_HTTP_SERVER/1.3.28  Apache/1.3.28 (Unix)

Content-Length: 525

Content-Type: text/xml; charset=utf-8

Content-Language: en-US

Connection: close



<?xml version="1.0" encoding="UTF-8" ?><Envelope
xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Fault><faultcode
xmlns="">Client</faultcode><faultstring xmlns="">Client Error</faultstring><detail
xmlns=""><dispositionReport generic="2.0" xmlns="urn:uddi-org:api_v2"
operator="private.uddi.operator">
<result errno="10500">
<errInfo errCode="E_fatalError">E_fatalError (10500) Serious technical error has occurred while
processing the request. </errInfo></result></dispositionReport></detail></Fault></Body></Envelope>

Client code:
#define ARRAYSIZE 1

char endpoint[256];

int
main(int argc, char *argv[])
{
    if( argc < 2 )
    {
        printf( "Usage: %s [endpoint] ", argv[0]);
        exit(0);
    }

    sprintf(endpoint, argv[1]);
    Inquire *ws = new Inquire(endpoint);
    //ws->setProxy("localhost", 9090);

    tModelKey_Array arrtModelKeys;
    arrtModelKeys.m_Array = new char *[ARRAYSIZE];
    arrtModelKeys.m_Size = ARRAYSIZE;
    char buffer[100];
    sprintf(buffer, "UUID:193AD561-1069-4A01-91AC-6B1B6883745A");

    for (int i = 0; i < ARRAYSIZE; i++)
    {
        arrtModelKeys.m_Array[i] = buffer;
    }
    char* name = "2.0";
    printf("invoking get_tModelDetail...\n");

    try
    {
        tModel_Array result = ws->get_tModelDetail(arrtModelKeys, name);
        printf("tModel_Array size = %d", result.m_Size);
    }
    catch(InquireService_AxisClientException& e)
            {
        printf("Exception caught : %s\n", e.what());
        printf("Exception caught : %d\n", e.getExceptionCode());
            }
    catch(AxisException& e)
    {
        printf("Exception caught : %s\n", e.what());
     }
}



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

Re: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi All,
    As per Susantha's suggestion, I fixed the header file inclusion problems (and commited), using
a typedef for the types having xsd__string as the base type.

    I did test this with the existing samples and did not find any problems.
    This makes the UDDI WSDL (inquire_v2.wsdl) to compile without problems. However, we need the
solution currently being implemented by Susantha to make the whole thing work properly.

    Please report problems if you find any problems with the fix that I have proviced.
Thanks,
Samisa...

--- nithya@opensource.lk wrote:

> Hi Samisa,
> 
> That's a good idea. I shall fix it.
> 
> I think that ANON_TOKEN would cause problems for the method name as well
> and I trying to figure it out too .
> 
> Regards,
> Nithya.
> 
> >
> >  Nithya,
> >     In place of:
> >      attribName.lastIndexOf('>')
> >  it is better to use:
> >      attribName.lastIndexOf(SymbolTable.ANON_TOKEN)
> >
> >  (In case Axis Java team decide to change the character for ANON_TOKEN)
> >
> >  Also, have you got any clues as to the other places where ANON_TOKEN
> > would cause trouble?
> >
> >  Thanks,
> >  Samisa...
> >
> >> --- nithya@opensource.lk wrote:
> >>
> >> > Hi Samisa,
> >> >
> >> > As SOAP message do not correspond to the WSDL due to the fix to handle
> >> > ANON_TOKEN similar to the way it is handled in Axis Java code I am
> >> working
> >> > on reverting the tool.
> >> >
> >> > Regards,
> >> > Nithya.
> >> >
> >> > > Hi All,
> >> > >     While trying to compile the generated code for the UDDI WSDL
> >> file
> >> > > (inquire_v2.wsdl) I got into
> >> > > trouble with the tool generating code with 'operator' keyword.
> >> > >
> >> > >     I fixed this and also inclided the code to handle ANON_TOKEN
> >> similar
> >> > > to the way it is handled
> >> > > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java
> >> file)
> >> > >
> >> > >    This made many problems go away with this WSDL file.
> >> > >    However I still get problems related to the inclusion of non
> >> existant
> >> > > files. (see below)
> >> > >
> >> > > Thanks,
> >> > > Samisa...
> >> > >
> >> > >
> >> > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> >> > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> >> > > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> >> > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> >> > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> >> > > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > __________________________________
> >> > > Do you Yahoo!?
> >> > > Read only the mail you want - Yahoo! Mail SpamGuard.
> >> > > http://promotions.yahoo.com/new_mail
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >>
> >> __________________________________
> >> Do you Yahoo!?
> >> New and Improved Yahoo! Mail - Send 10MB messages!
> >> http://promotions.yahoo.com/new_mail
> >>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> 
> 



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush