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 Samisa Abeysinghe <sa...@yahoo.com> on 2004/08/24 10:32:54 UTC

Stub fails to operate correctly with inquire_v2.wsdl service

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: 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!