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 "Andrew Borley (JIRA)" <ji...@apache.org> on 2006/11/28 17:48:22 UTC

[jira] Created: (AXIS2C-432) Endpoint reference service URI truncated

Endpoint reference service URI truncated
----------------------------------------

                 Key: AXIS2C-432
                 URL: http://issues.apache.org/jira/browse/AXIS2C-432
             Project: Axis2-C
          Issue Type: Bug
          Components: core/transport
    Affects Versions: 0.94, 0.95
            Reporter: Andrew Borley


Axis2/C is truncating the query part of the URI I'm setting in the endpoint ref of my client.
My code is something like:

char* address = "http://server:port/path/to/services?servicename=Name";
axis2_endpoint_ref_t* endpoint_ref = axis2_endpoint_ref_create(env, address);

/* Set options */
AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);

...
axiom_node_t* ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client,env, payload);

But using a TCP monitor, the first line of the HTTP header looks like:

POST /path/to/services HTTP/1.1

Should the path used in the HTTP call not be "/path/to/services?servicename=Name" ? 
This currently causes calls to certain services (like the Amazon web services) to fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-432) Endpoint reference service URI truncated

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-432?page=all ]

Samisa Abeysinghe resolved AXIS2C-432.
--------------------------------------

    Resolution: Fixed

Applied the patch as it looks to be leagal to have a parameterised URL according to specs

> Endpoint reference service URI truncated
> ----------------------------------------
>
>                 Key: AXIS2C-432
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-432
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.94, 0.95
>            Reporter: Andrew Borley
>         Assigned To: Samisa Abeysinghe
>             Fix For: 0.96
>
>         Attachments: url.patch
>
>
> Axis2/C is truncating the query part of the URI I'm setting in the endpoint ref of my client.
> My code is something like:
> char* address = "http://server:port/path/to/services?servicename=Name";
> axis2_endpoint_ref_t* endpoint_ref = axis2_endpoint_ref_create(env, address);
> /* Set options */
> AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
> ...
> axiom_node_t* ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client,env, payload);
> But using a TCP monitor, the first line of the HTTP header looks like:
> POST /path/to/services HTTP/1.1
> Should the path used in the HTTP call not be "/path/to/services?servicename=Name" ? 
> This currently causes calls to certain services (like the Amazon web services) to fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-432) Endpoint reference service URI truncated

Posted by "Andrew Borley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-432?page=comments#action_12454300 ] 
            
Andrew Borley commented on AXIS2C-432:
--------------------------------------

The patch looks like it is producing the right HTTP messages, but something is failing at the server so I can't validate the fix right now...

> Endpoint reference service URI truncated
> ----------------------------------------
>
>                 Key: AXIS2C-432
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-432
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.94, 0.95
>            Reporter: Andrew Borley
>         Attachments: url.patch
>
>
> Axis2/C is truncating the query part of the URI I'm setting in the endpoint ref of my client.
> My code is something like:
> char* address = "http://server:port/path/to/services?servicename=Name";
> axis2_endpoint_ref_t* endpoint_ref = axis2_endpoint_ref_create(env, address);
> /* Set options */
> AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
> ...
> axiom_node_t* ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client,env, payload);
> But using a TCP monitor, the first line of the HTTP header looks like:
> POST /path/to/services HTTP/1.1
> Should the path used in the HTTP call not be "/path/to/services?servicename=Name" ? 
> This currently causes calls to certain services (like the Amazon web services) to fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-432) Endpoint reference service URI truncated

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-432?page=all ]

Samisa Abeysinghe updated AXIS2C-432:
-------------------------------------

    Fix Version/s: 0.96
         Assignee: Samisa Abeysinghe

What is the nature of failure on server side? Is it due to the format of the request or something else?

> Endpoint reference service URI truncated
> ----------------------------------------
>
>                 Key: AXIS2C-432
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-432
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.94, 0.95
>            Reporter: Andrew Borley
>         Assigned To: Samisa Abeysinghe
>             Fix For: 0.96
>
>         Attachments: url.patch
>
>
> Axis2/C is truncating the query part of the URI I'm setting in the endpoint ref of my client.
> My code is something like:
> char* address = "http://server:port/path/to/services?servicename=Name";
> axis2_endpoint_ref_t* endpoint_ref = axis2_endpoint_ref_create(env, address);
> /* Set options */
> AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
> ...
> axiom_node_t* ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client,env, payload);
> But using a TCP monitor, the first line of the HTTP header looks like:
> POST /path/to/services HTTP/1.1
> Should the path used in the HTTP call not be "/path/to/services?servicename=Name" ? 
> This currently causes calls to certain services (like the Amazon web services) to fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-432) Endpoint reference service URI truncated

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-432?page=all ]

Samisa Abeysinghe updated AXIS2C-432:
-------------------------------------

    Attachment: url.patch

I am not sure if it is legal to send pramaters in the resource path section of a POST request. Till we figure that out, I have provided a quick patch to fix your problem. Please apply this to util/src/url.c and see if it works

> Endpoint reference service URI truncated
> ----------------------------------------
>
>                 Key: AXIS2C-432
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-432
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.94, 0.95
>            Reporter: Andrew Borley
>         Attachments: url.patch
>
>
> Axis2/C is truncating the query part of the URI I'm setting in the endpoint ref of my client.
> My code is something like:
> char* address = "http://server:port/path/to/services?servicename=Name";
> axis2_endpoint_ref_t* endpoint_ref = axis2_endpoint_ref_create(env, address);
> /* Set options */
> AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
> ...
> axiom_node_t* ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client,env, payload);
> But using a TCP monitor, the first line of the HTTP header looks like:
> POST /path/to/services HTTP/1.1
> Should the path used in the HTTP call not be "/path/to/services?servicename=Name" ? 
> This currently causes calls to certain services (like the Amazon web services) to fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org