soap call into liferay.

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

soap call into liferay.

SateeshK
Hi,

  I am making a soap call into a liferay service. The output seems to be truncated.
  See the href="#id0" at the last line.

  If however I make the same call via the brower I get a different response. I am pasting the content below that of the Orbeon response and the XPL I am using.
 
  Does anyone have a suggestion?

Thanks in advance,
- Sateesh.

$ exec.bat web*

I:\cygwin\home\Sateesh\eclipse\xforms\src\main\resources\apps\webservice>set ORBEON_JAR="I:\cygwin\home\Sateesh\cms\jboss\server\default\deploy\orbeon.war\WEB-INF\orbeon-cli.jar"

I:\cygwin\home\Sateesh\eclipse\xforms\src\main\resources\apps\webservice>java -jar "I:\cygwin\home\Sateesh\cms\jboss\server\default\deploy\orbeon.war\WEB-INF\orbeon-cli.jar" webservice.xpl
Initializing Resource Manager with: {oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory, oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManag
erFactory, oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory}
2008-12-19 05:31:44,403 INFO  org.orbeon.oxf.main.OPS  - Running processor
<?xml version="1.0" encoding="utf-8"?>
<getUserByIdReturn xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
                   xmlns:xu="http://www.xmldb.org/xupdate"
                   xmlns:oxf="http://www.orbeon.com/oxf/processors"
                   xmlns:xmldb="http://exist-db.org/xquery/xmldb"
                   xmlns:xdb="http://orbeon.org/oxf/xml/xmldb"
                   xmlns:xs="http://www.w3.org/2001/XMLSchema"
                   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns:p="http://www.orbeon.com/oxf/pipeline"
                   href="#id0"/>2008-12-19 05:31:45,871 INFO  org.orbeon.oxf.main.OPS  - / - Timing: 1468 - Cache hits for cache.main: 4, fault: 12, adds: 12, expirations: 0, success rate: 2
5%

$ cat webservice.xpl
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:oxf="http://www.orbeon.com/oxf/processors"
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns:xdb="http://orbeon.org/oxf/xml/xmldb"
          xmlns:xu="http://www.xmldb.org/xupdate"
          xmlns:xmldb="http://exist-db.org/xquery/xmldb">

  <p:processor name="oxf:delegation">
    <p:input name="interface">
      <config>
        <service id="userInfo" style="rpc" type="webservice" endpoint="http://10137:admin@localhost:8080/tunnel-web/secure/axis/Portal_UserService">
         <operation nsuri="urn:http.service.portal.liferay.com" name="getUserById"/>
        </service>
      </config>
    </p:input>
    <p:input name="call">
      <delegation:execute service="userInfo" operation="getUserById" xmlns:delegation="http://orbeon.org/oxf/xml/delegation"><userId>10137</userId></delegation:execute>
    </p:input>
    <p:output name="data" id="data-out"/>
  </p:processor>

  <p:processor name="oxf:xml-converter">
    <p:input name="data" href="#data-out"/>

    <p:input name="config"><config/></p:input>

    <p:output name="data" id="data-out-converted"/>
  </p:processor>

  <p:processor name="oxf:http-serializer">
    <p:input name="config"><config/></p:input>

    <p:input name="data" href="#data-out-converted"/>
  </p:processor>

</p:config>
$


$ cat resp*
<soapenv:Envelope>

<soapenv:Body>

<getUserByIdResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<getUserByIdReturn href="#id0"/>
</getUserByIdResponse>

<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:UserSoap">
<active href="#id1"/>
<agreedToTermsOfUse href="#id2"/>
<comments xsi:type="soapenc:string"/>
<companyId href="#id3"/>
<contactId href="#id4"/>
<createDate xsi:type="xsd:dateTime">2008-12-18T06:14:06.000Z</createDate>
<defaultUser href="#id5"/>
<emailAddress xsi:type="soapenc:string">admin@test.com</emailAddress>
<failedLoginAttempts href="#id6"/>
<graceLoginCount href="#id7"/>
<greeting xsi:type="soapenc:string">Welcome Default Adminstrator!</greeting>
<languageId xsi:type="soapenc:string">en_US</languageId>
<lastFailedLoginDate xsi:type="xsd:dateTime" xsi:nil="true"/>
<lastLoginDate xsi:type="xsd:dateTime">2008-12-18T06:15:50.000Z</lastLoginDate>
<lastLoginIP xsi:type="soapenc:string">127.0.0.1</lastLoginIP>
<lockout href="#id8"/>
<lockoutDate xsi:type="xsd:dateTime" xsi:nil="true"/>
<loginDate xsi:type="xsd:dateTime">2008-12-18T06:15:50.000Z</loginDate>
<loginIP xsi:type="soapenc:string">127.0.0.1</loginIP>
<modifiedDate xsi:type="xsd:dateTime">2008-12-18T06:14:06.000Z</modifiedDate>
<openId xsi:type="soapenc:string"/>
<password xsi:type="soapenc:string">0DPiKuNIrrVmD8IUCuw1hQxNqZc=</password>
<passwordEncrypted href="#id9"/>
<passwordModifiedDate xsi:type="xsd:dateTime" xsi:nil="true"/>
<passwordReset href="#id10"/>
<portraitId href="#id11"/>
<primaryKey href="#id12"/>
<reminderQueryAnswer xsi:type="soapenc:string">1234</reminderQueryAnswer>
<reminderQueryQuestion xsi:type="soapenc:string">what-is-your-primary-frequent-flyer-number</reminderQueryQuestion>
<screenName xsi:type="soapenc:string">admin</screenName>
<timeZoneId xsi:type="soapenc:string">UTC</timeZoneId>
<userId href="#id13"/>
<uuid xsi:type="soapenc:string">c69bde40-c54a-4c2f-9252-73f0cd0a2b1c</uuid>
</multiRef>
<multiRef id="id10" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">false</multiRef>
<multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">true</multiRef>
<multiRef id="id7" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int">0</multiRef>
<multiRef id="id9" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">true</multiRef>
<multiRef id="id12" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">10137</multiRef>
<multiRef id="id5" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">false</multiRef>
<multiRef id="id4" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">10138</multiRef>
<multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">10112</multiRef>
<multiRef id="id8" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">false</multiRef>
<multiRef id="id11" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">0</multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">true</multiRef>
<multiRef id="id13" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">10137</multiRef>
<multiRef id="id6" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int">0</multiRef>
</soapenv:Body>
</soapenv:Envelope>
$
Reply | Threaded
Open this post in threaded view
|

Dateformat dd-mm-yyyy

RdeBeijer
Hi,

I know this question is asked before but I cant find an answer on the
internet so hopefully someone can help.
I want to display the date on the screen as dd-mm-yyyy in the model it
is okay to save it like yyyy-mm-dd

Is there anyway to configure it to show like this the parameters in
properties.xml dont seem to work? Or do I have to hack a javascript file.

I am using Orbeon 3.7

Regards Ramon


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Dateformat dd-mm-yyyy

fl.schmitt(ops-users)
Ramon,

> Is there anyway to configure it to show like this the parameters in
> properties.xml dont seem to work? Or do I have to hack a javascript file.
> I am using Orbeon 3.7

which 3.7.??? There is not yet a final 3.7 available, and there are
differences regarding the configuration between, e.g. 3.7beta1 and the
latest nightly builds. The nightly builds have the properties split over
several files, so any changes you made in a properties.xml file might
not be recognized. Another point is that you have to bind the instance
element containing the date to the xs:date type, as far as i know, to
enable the formatting according to the pattern in the properties.

HTH
florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Dateformat dd-mm-yyyy

RdeBeijer
Hi Florian,

I am running 3.7.0beta1.200808260135 (at least thats what the logging
says) I know its beta but we are moving from 3.6 to 3.7 to get rid of
some other problems.
I marked the field as xs:date, otherwise I wouldnt get the datepicker
anyway, but I just want it to print the date in the input field that
belongs to the datepicker as dd-mm-yyyy instead of the mm/dd/yyyy

any ideas?

Regards Ramon


Florian Schmitt schreef:

> Ramon,
>
>  
>> Is there anyway to configure it to show like this the parameters in
>> properties.xml dont seem to work? Or do I have to hack a javascript file.
>> I am using Orbeon 3.7
>>    
>
> which 3.7.??? There is not yet a final 3.7 available, and there are
> differences regarding the configuration between, e.g. 3.7beta1 and the
> latest nightly builds. The nightly builds have the properties split over
> several files, so any changes you made in a properties.xml file might
> not be recognized. Another point is that you have to bind the instance
> element containing the date to the xs:date type, as far as i know, to
> enable the formatting according to the pattern in the properties.
>
> HTH
> florian
>
>  


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Dateformat dd-mm-yyyy

fl.schmitt(ops-users)
Hi Ramon,

> I marked the field as xs:date, otherwise I wouldnt get the datepicker
> anyway, but I just want it to print the date in the input field that
> belongs to the datepicker as dd-mm-yyyy instead of the mm/dd/yyyy
>
> any ideas?

which settings do you have in your properties.xml? There are two
settings redarding the date, oxf.xforms.format.date and
oxf.xforms.format.input.date .

florian


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: soap call into liferay.

Erik Bruchez
Administrator
In reply to this post by SateeshK
Sateesh,

There must be something different (HTTP headers?) between the two  
requests. Try to use Firebug to look at the request from the browser,  
and another tool like tcpmon or HTTPScoop to see what's happening when  
Orbeon calls the service.

-Erik

On Dec 19, 2008, at 11:41 AM, SateeshK wrote:

>
> Hi,
>
>  I am making a soap call into a liferay service. The output seems to  
> be
> truncated.
>  See the href="#id0" at the last line.
>
>  If however I make the same call via the brower I get a different  
> response.
> I am pasting the content below that of the Orbeon response and the  
> XPL I am
> using.
>
>  Does anyone have a suggestion?
>
> Thanks in advance,
> - Sateesh.
>
> $ exec.bat web*
>
> I:\cygwin\home\Sateesh\eclipse\xforms\src\main\resources\apps
> \webservice>set
> ORBEON_JAR="I:\cygwin\home\Sateesh\cms\jboss\server\default\deploy
> \orbeon.war\WEB-INF\orbeon-cli.jar"
>
> I:\cygwin\home\Sateesh\eclipse\xforms\src\main\resources\apps
> \webservice>java
> -jar
> "I:\cygwin\home\Sateesh\cms\jboss\server\default\deploy\orbeon.war
> \WEB-INF\orbeon-cli.jar"
> webservice.xpl
> Initializing Resource Manager with:
> {oxf.resources.priority.
> 2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory,
> oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManag
> erFactory,
> oxf.resources.priority.
> 1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory}
> 2008-12-19 05:31:44,403 INFO  org.orbeon.oxf.main.OPS  - Running  
> processor
> <?xml version="1.0" encoding="utf-8"?>
> <getUserByIdReturn xmlns:delegation="http://orbeon.org/oxf/xml/delegation 
> "
>                   xmlns:xu="http://www.xmldb.org/xupdate"
>                   xmlns:oxf="http://www.orbeon.com/oxf/processors"
>                   xmlns:xmldb="http://exist-db.org/xquery/xmldb"
>                   xmlns:xdb="http://orbeon.org/oxf/xml/xmldb"
>                   xmlns:xs="http://www.w3.org/2001/XMLSchema"
>                   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                   xmlns:p="http://www.orbeon.com/oxf/pipeline"
>                   href="#id0"/>2008-12-19 05:31:45,871 INFO
> org.orbeon.oxf.main.OPS  - / - Timing: 1468 - Cache hits for  
> cache.main: 4,
> fault: 12, adds: 12, expirations: 0, success rate: 2
> 5%
>
> $ cat webservice.xpl
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>          xmlns:oxf="http://www.orbeon.com/oxf/processors"
>          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>          xmlns:xs="http://www.w3.org/2001/XMLSchema"
>          xmlns:xdb="http://orbeon.org/oxf/xml/xmldb"
>          xmlns:xu="http://www.xmldb.org/xupdate"
>          xmlns:xmldb="http://exist-db.org/xquery/xmldb">
> <!--
> ___________________________________________________________________________
> -->
>  <p:processor name="oxf:delegation">
>    <p:input name="interface">
>      <config>
>        <service id="userInfo" style="rpc" type="webservice"
> endpoint="http://10137:admin@localhost:8080/tunnel-web/secure/axis/Portal_UserService 
> ">
>         <operation nsuri="urn:http.service.portal.liferay.com"
> name="getUserById"/>
>        </service>
>      </config>
>    </p:input>
>    <p:input name="call">
>      <delegation:execute service="userInfo" operation="getUserById"
> xmlns:delegation="http://orbeon.org/oxf/xml/ 
> delegation"><userId>10137</userId></delegation:execute>
>    </p:input>
>    <p:output name="data" id="data-out"/>
>  </p:processor>
> <!-- ___________________________________________________-->
>  <p:processor name="oxf:xml-converter">
>    <p:input name="data" href="#data-out"/>
>
>    <p:input name="config"><config/></p:input>
>
>    <p:output name="data" id="data-out-converted"/>
>  </p:processor>
>
>  <p:processor name="oxf:http-serializer">
>    <p:input name="config"><config/></p:input>
>
>    <p:input name="data" href="#data-out-converted"/>
>  </p:processor>
> <!--
> ___________________________________________________________________________
> -->
> </p:config>
> $
>
>
> $ cat resp*
> <soapenv:Envelope>
>
> <soapenv:Body>
>
> <getUserByIdResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> <getUserByIdReturn href="#id0"/>
> </getUserByIdResponse>
>
> <multiRef id="id0" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns1:UserSoap">
> <active href="#id1"/>
> <agreedToTermsOfUse href="#id2"/>
> <comments xsi:type="soapenc:string"/>
> <companyId href="#id3"/>
> <contactId href="#id4"/>
> <createDate xsi:type="xsd:dateTime">2008-12-18T06:14:06.000Z</
> createDate>
> <defaultUser href="#id5"/>
> <emailAddress xsi:type="soapenc:string">[hidden email]</emailAddress>
> <failedLoginAttempts href="#id6"/>
> <graceLoginCount href="#id7"/>
> <greeting xsi:type="soapenc:string">Welcome Default Adminstrator!</
> greeting>
> <languageId xsi:type="soapenc:string">en_US</languageId>
> <lastFailedLoginDate xsi:type="xsd:dateTime" xsi:nil="true"/>
> <lastLoginDate
> xsi:type="xsd:dateTime">2008-12-18T06:15:50.000Z</lastLoginDate>
> <lastLoginIP xsi:type="soapenc:string">127.0.0.1</lastLoginIP>
> <lockout href="#id8"/>
> <lockoutDate xsi:type="xsd:dateTime" xsi:nil="true"/>
> <loginDate xsi:type="xsd:dateTime">2008-12-18T06:15:50.000Z</
> loginDate>
> <loginIP xsi:type="soapenc:string">127.0.0.1</loginIP>
> <modifiedDate
> xsi:type="xsd:dateTime">2008-12-18T06:14:06.000Z</modifiedDate>
> <openId xsi:type="soapenc:string"/>
> <password xsi:type="soapenc:string">0DPiKuNIrrVmD8IUCuw1hQxNqZc=</
> password>
> <passwordEncrypted href="#id9"/>
> <passwordModifiedDate xsi:type="xsd:dateTime" xsi:nil="true"/>
> <passwordReset href="#id10"/>
> <portraitId href="#id11"/>
> <primaryKey href="#id12"/>
> <reminderQueryAnswer xsi:type="soapenc:string">1234</
> reminderQueryAnswer>
> <reminderQueryQuestion
> xsi:type="soapenc:string">what-is-your-primary-frequent-flyer-
> number</reminderQueryQuestion>
> <screenName xsi:type="soapenc:string">admin</screenName>
> <timeZoneId xsi:type="soapenc:string">UTC</timeZoneId>
> <userId href="#id13"/>
> <uuid xsi:type="soapenc:string">c69bde40-
> c54a-4c2f-9252-73f0cd0a2b1c</uuid>
> </multiRef>
> <multiRef id="id10" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:boolean">false</multiRef>
> <multiRef id="id2" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:boolean">true</multiRef>
> <multiRef id="id7" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:int">0</multiRef>
> <multiRef id="id9" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:boolean">true</multiRef>
> <multiRef id="id12" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:long">10137</multiRef>
> <multiRef id="id5" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:boolean">false</multiRef>
> <multiRef id="id4" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:long">10138</multiRef>
> <multiRef id="id3" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:long">10112</multiRef>
> <multiRef id="id8" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:boolean">false</multiRef>
> <multiRef id="id11" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:long">0</multiRef>
> <multiRef id="id1" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:boolean">true</multiRef>
> <multiRef id="id13" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:long">10137</multiRef>
> <multiRef id="id6" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="xsd:int">0</multiRef>
> </soapenv:Body>
> </soapenv:Envelope>
> $
> --
> View this message in context: http://www.nabble.com/soap-call-into-liferay.-tp21089225p21089225.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Dateformat dd-mm-yyyy

RdeBeijer
In reply to this post by fl.schmitt(ops-users)
Hi Florian (and others),

These are my date related setting in my properties.xml, I also tried yui
as calendar, but it made no difference.
It keeps holding on to mm/dd/yyyy

<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:oxf="http://www.orbeon.com/oxf/processors">
    <property as="xs:string"  
name="oxf.xforms.format.date"                          value="if (.
castable as xs:date) then format-date(xs:date(.), '[D]-[M]-[Y]', 'en',
(), ()) else ."/>
    <property as="xs:string"  
name="oxf.xforms.format.dateTime"                      value="if (.
castable as xs:dateTime) then format-dateTime(xs:dateTime(.),
'[D]-[M]-[Y] [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
    <property as="xs:string"  
name="oxf.xforms.format.time"                          value="if (.
castable as xs:time) then format-time(xs:time(.), '[H01]:[m01]:[s01]
[ZN]', 'en', (), ()) else ."/>
    <property as="xs:string"  
name="oxf.xforms.format.input.date"                    value="[D]-[M]-[Y]"/>
    <property as="xs:string"  
name="oxf.xforms.format.input.time"                    
value="[h]:[m]:[s] [P]"/> <!-- [h]:[m]:[s] [P]  or  [H]:[m]:[s] -->
    <property as="xs:string"  
name="oxf.xforms.datepicker"                          
value="jscalendar"/>  <!-- jscalendar or yui -->
</properties>

Also tried downloading a nightly build like somebody suggested but that
only delivers errors so thats not an option,
also the fact that we are using it for (semi)live it rules out nightly
builds, using the beta is already living on the edge.

So any extra ideas anyone?

Regard Ramon



Florian Schmitt schreef:

> Hi Ramon,
>
>  
>> I marked the field as xs:date, otherwise I wouldnt get the datepicker
>> anyway, but I just want it to print the date in the input field that
>> belongs to the datepicker as dd-mm-yyyy instead of the mm/dd/yyyy
>>
>> any ideas?
>>    
>
> which settings do you have in your properties.xml? There are two
> settings redarding the date, oxf.xforms.format.date and
> oxf.xforms.format.input.date .
>
> florian
>  


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: Re: Re: Re: Dateformat dd-mm-yyyy

Ryan Puddephatt-3
Ramon,
        Orbeon only supports <!-- [M]/[D]/[Y]  or  [D].[M].[Y]-->

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1812
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: Ramon de Beijer [mailto:[hidden email]]
Sent: 22 December 2008 09:23
To: [hidden email]
Subject: [ops-users] Re: Re: Re: Re: Dateformat dd-mm-yyyy

Hi Florian (and others),

These are my date related setting in my properties.xml, I also tried yui as calendar, but it made no difference.
It keeps holding on to mm/dd/yyyy

<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:oxf="http://www.orbeon.com/oxf/processors">
    <property as="xs:string"  
name="oxf.xforms.format.date"                          value="if (.
castable as xs:date) then format-date(xs:date(.), '[D]-[M]-[Y]', 'en', (), ()) else ."/>
    <property as="xs:string"  
name="oxf.xforms.format.dateTime"                      value="if (.
castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[D]-[M]-[Y] [H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
    <property as="xs:string"  
name="oxf.xforms.format.time"                          value="if (.
castable as xs:time) then format-time(xs:time(.), '[H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
    <property as="xs:string"  
name="oxf.xforms.format.input.date"                    value="[D]-[M]-[Y]"/>
    <property as="xs:string"  
name="oxf.xforms.format.input.time"                    
value="[h]:[m]:[s] [P]"/> <!-- [h]:[m]:[s] [P]  or  [H]:[m]:[s] -->
    <property as="xs:string"  
name="oxf.xforms.datepicker"                          
value="jscalendar"/>  <!-- jscalendar or yui --> </properties>

Also tried downloading a nightly build like somebody suggested but that only delivers errors so thats not an option, also the fact that we are using it for (semi)live it rules out nightly builds, using the beta is already living on the edge.

So any extra ideas anyone?

Regard Ramon



Florian Schmitt schreef:

> Hi Ramon,
>
>  
>> I marked the field as xs:date, otherwise I wouldnt get the datepicker
>> anyway, but I just want it to print the date in the input field that
>> belongs to the datepicker as dd-mm-yyyy instead of the mm/dd/yyyy
>>
>> any ideas?
>>    
>
> which settings do you have in your properties.xml? There are two
> settings redarding the date, oxf.xforms.format.date and
> oxf.xforms.format.input.date .
>
> florian
>  


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Dateformat dd-mm-yyyy

fl.schmitt(ops-users)
In reply to this post by RdeBeijer
Hi Ramon,

>    <property as="xs:string"
> name="oxf.xforms.format.date"                          value="if (.
> castable as xs:date) then format-date(xs:date(.), '[D]-[M]-[Y]', 'en',
> (), ()) else ."/>
(...)
>    <property as="xs:string"
> name="oxf.xforms.format.input.date"                  
> value="[D]-[M]-[Y]"/>

found the following posting:

http://www.nabble.com/DD-MM-YYY-format-for-imput-to20973849.html

so, using the properties you may only have the choice between
"[M]/[D]/[Y]" and "[D].[M].[Y]". But you could try to format the
xforms:input directly; there's an example, too:

http://www.nabble.com/Input---type-date---format-to12403891.html#a12444720

HTH
florian


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: soap call into liferay.

SateeshK
In reply to this post by SateeshK
Hi,

  I got it working by passing in the optional select attribute.

Thanks,
- Sateesh.

SateeshK wrote
Hi,

  I am making a soap call into a liferay service. The output seems to be truncated.
  See the href="#id0" at the last line.

  If however I make the same call via the brower I get a different response. I am pasting the content below that of the Orbeon response and the XPL I am using.
 
  Does anyone have a suggestion?

Thanks in advance,
- Sateesh.

$ exec.bat web*

I:\cygwin\home\Sateesh\eclipse\xforms\src\main\resources\apps\webservice>set ORBEON_JAR="I:\cygwin\home\Sateesh\cms\jboss\server\default\deploy\orbeon.war\WEB-INF\orbeon-cli.jar"

I:\cygwin\home\Sateesh\eclipse\xforms\src\main\resources\apps\webservice>java -jar "I:\cygwin\home\Sateesh\cms\jboss\server\default\deploy\orbeon.war\WEB-INF\orbeon-cli.jar" webservice.xpl
Initializing Resource Manager with: {oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory, oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManag
erFactory, oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory}
2008-12-19 05:31:44,403 INFO  org.orbeon.oxf.main.OPS  - Running processor
<?xml version="1.0" encoding="utf-8"?>
<getUserByIdReturn xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
                   xmlns:xu="http://www.xmldb.org/xupdate"
                   xmlns:oxf="http://www.orbeon.com/oxf/processors"
                   xmlns:xmldb="http://exist-db.org/xquery/xmldb"
                   xmlns:xdb="http://orbeon.org/oxf/xml/xmldb"
                   xmlns:xs="http://www.w3.org/2001/XMLSchema"
                   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns:p="http://www.orbeon.com/oxf/pipeline"
                   href="#id0"/>2008-12-19 05:31:45,871 INFO  org.orbeon.oxf.main.OPS  - / - Timing: 1468 - Cache hits for cache.main: 4, fault: 12, adds: 12, expirations: 0, success rate: 2
5%

$ cat webservice.xpl
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:oxf="http://www.orbeon.com/oxf/processors"
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns:xdb="http://orbeon.org/oxf/xml/xmldb"
          xmlns:xu="http://www.xmldb.org/xupdate"
          xmlns:xmldb="http://exist-db.org/xquery/xmldb">

  <p:processor name="oxf:delegation">
    <p:input name="interface">
      <config>
        <service id="userInfo" style="rpc" type="webservice" endpoint="http://10137:admin@localhost:8080/tunnel-web/secure/axis/Portal_UserService">
         <operation nsuri="urn:http.service.portal.liferay.com" name="getUserById"/>
        </service>
      </config>
    </p:input>
    <p:input name="call">
      <delegation:execute service="userInfo" operation="getUserById" xmlns:delegation="http://orbeon.org/oxf/xml/delegation"><userId>10137</userId></delegation:execute>
    </p:input>
    <p:output name="data" id="data-out"/>
  </p:processor>

  <p:processor name="oxf:xml-converter">
    <p:input name="data" href="#data-out"/>

    <p:input name="config"><config/></p:input>

    <p:output name="data" id="data-out-converted"/>
  </p:processor>

  <p:processor name="oxf:http-serializer">
    <p:input name="config"><config/></p:input>

    <p:input name="data" href="#data-out-converted"/>
  </p:processor>

</p:config>
$


$ cat resp*
<soapenv:Envelope>

<soapenv:Body>

<getUserByIdResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<getUserByIdReturn href="#id0"/>
</getUserByIdResponse>

<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:UserSoap">
<active href="#id1"/>
<agreedToTermsOfUse href="#id2"/>
<comments xsi:type="soapenc:string"/>
<companyId href="#id3"/>
<contactId href="#id4"/>
<createDate xsi:type="xsd:dateTime">2008-12-18T06:14:06.000Z</createDate>
<defaultUser href="#id5"/>
<emailAddress xsi:type="soapenc:string">admin@test.com</emailAddress>
<failedLoginAttempts href="#id6"/>
<graceLoginCount href="#id7"/>
<greeting xsi:type="soapenc:string">Welcome Default Adminstrator!</greeting>
<languageId xsi:type="soapenc:string">en_US</languageId>
<lastFailedLoginDate xsi:type="xsd:dateTime" xsi:nil="true"/>
<lastLoginDate xsi:type="xsd:dateTime">2008-12-18T06:15:50.000Z</lastLoginDate>
<lastLoginIP xsi:type="soapenc:string">127.0.0.1</lastLoginIP>
<lockout href="#id8"/>
<lockoutDate xsi:type="xsd:dateTime" xsi:nil="true"/>
<loginDate xsi:type="xsd:dateTime">2008-12-18T06:15:50.000Z</loginDate>
<loginIP xsi:type="soapenc:string">127.0.0.1</loginIP>
<modifiedDate xsi:type="xsd:dateTime">2008-12-18T06:14:06.000Z</modifiedDate>
<openId xsi:type="soapenc:string"/>
<password xsi:type="soapenc:string">0DPiKuNIrrVmD8IUCuw1hQxNqZc=</password>
<passwordEncrypted href="#id9"/>
<passwordModifiedDate xsi:type="xsd:dateTime" xsi:nil="true"/>
<passwordReset href="#id10"/>
<portraitId href="#id11"/>
<primaryKey href="#id12"/>
<reminderQueryAnswer xsi:type="soapenc:string">1234</reminderQueryAnswer>
<reminderQueryQuestion xsi:type="soapenc:string">what-is-your-primary-frequent-flyer-number</reminderQueryQuestion>
<screenName xsi:type="soapenc:string">admin</screenName>
<timeZoneId xsi:type="soapenc:string">UTC</timeZoneId>
<userId href="#id13"/>
<uuid xsi:type="soapenc:string">c69bde40-c54a-4c2f-9252-73f0cd0a2b1c</uuid>
</multiRef>
<multiRef id="id10" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">false</multiRef>
<multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">true</multiRef>
<multiRef id="id7" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int">0</multiRef>
<multiRef id="id9" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">true</multiRef>
<multiRef id="id12" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">10137</multiRef>
<multiRef id="id5" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">false</multiRef>
<multiRef id="id4" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">10138</multiRef>
<multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">10112</multiRef>
<multiRef id="id8" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">false</multiRef>
<multiRef id="id11" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">0</multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:boolean">true</multiRef>
<multiRef id="id13" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long">10137</multiRef>
<multiRef id="id6" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int">0</multiRef>
</soapenv:Body>
</soapenv:Envelope>
$