[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    [wsf-c-dev] [jira] Commented: (WSFPHP-362) WSMessage->str length is
From:       "Nandika Jayawardana (JIRA)" <jira () wso2 ! org>
Date:       2008-12-05 6:37:05
Message-ID: 19179739.1228459025123.JavaMail.jira () wso2 ! org ! ec2 ! wso2 ! com
[Download RAW message or body]


    [ https://wso2.org/jira/browse/WSFPHP-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20469#action_20469 \
] 

Nandika Jayawardana commented on WSFPHP-362:
--------------------------------------------

When you run this code, what you receive is \
<getTagsOnReader><reader_name>test4</reader_name></getTagsOnReader> which is of \
length 67. However the browser only displays the text part which is test4.

> WSMessage->str length is incorrect
> ----------------------------------
> 
> Key: WSFPHP-362
> URL: https://wso2.org/jira/browse/WSFPHP-362
> Project: WSO2 WSF/PHP
> Issue Type: Bug
> Components: REST Support
> Environment: Ubuntu v8.10 with Apache 2 and WSF/PHP 2.0.0
> Reporter: Christophe DUMEZ
> Attachments: idirector_rest.php
> 
> 
> I created a simple REST web service, I'm calling it using the following URL:
> http://localhost/WS/idirector_rest.php/getTagsOnReader?reader_name=test4
> And here is my function:
> function getTagsOnReader($reader_name) {
> $reader_nameStr = $reader_name->str;
> var_dump($reader_nameStr);
> ...
> return $tag_ids;
> }
> The problem is that var_dump displays:
> string(67) "test4" 
> How can "test4" have a length of 67? I am using the string in my code for SQL \
> request and I get no matching row. I believe this is the reason. I am a beginner \
> with WSF so it might be a silly mistake but this looks odd to me.

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

        

_______________________________________________
Wsf-c-dev mailing list
Wsf-c-dev@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic