create Document

Do you want to create a native client or integrate with third party applications: webservices are the solution.

Moderator: car031

juaneduardohv
Posts: 2
Joined: Mon Jan 31, 2011 9:47 pm

create Document

Mon Jan 31, 2011 10:00 pm

I'm creating a new Document using Document?wsdl > create Request. The server return:


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>java.lang.NullPointerException</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>

The Requestmessage is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:doc="http://document.webservice.logicaldoc.com/">
<soapenv:Header/>
<soapenv:Body>
<doc:create>
<!--Optional:-->
<sid>764cfed6-02db-402a-a142-b646acf297f8</sid>
<!--Optional:-->
<document>
<!--Optional:-->
<creator>Administrador Administrador</creator>
<creatorId>1</creatorId>
<dateCategory>0</dateCategory>
<docType>2</docType>
<exportStatus>0</exportStatus>
<!--Zero or more repetitions:-->
<!--Optional:-->
<fileName>Reporte</fileName>
<fileSize>25859</fileSize>
<!--Optional:-->
<folderId>9</folderId>
<id>36</id>
<immutable>0</immutable>
<indexed>0</indexed>
<!--Optional:-->
<language>es</language>
<!--Optional:-->
<lengthCategory>0</lengthCategory>
<!--Optional:-->

<!--Optional:-->
<publisher>Administrador Administrador</publisher>
<publisherId>1</publisherId>
<signed>0</signed>
<size>25859</size>
<status>0</status>
<!--Optional:-->
<!--Zero or more repetitions:-->
<tags>Matriz reporte</tags>
<!--Optional:-->
<templateId>11</templateId>
<!--Optional:-->
<title>Reporte</title>
<!--Optional:-->
<type>xls</type>
<!--Optional:-->
<version>1.0</version>
</document>
<!--Optional:-->
<content>PHRhYmxlIGJvcmRlcj0iMSIgd2lkdGg9IjEwMCUiPgoJPHRyIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiM4NDg0ODQ7Ij4KCQk8dGggY29sc3Bhbj0iNCI+UFJPQ0VESU1JRU5UTzwvdGg+CgkJPHRoIGNvbHNwYW49IjMiPklOU1RSVUNUSVZPPC90aD4KCQk8dGggY29sc3Bhbj0iNCI+UkVHSVNUUk88L3RoPgoJPC90cj4KCTx0ciBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojODQ4NDg0OyI+CgkJPHRoPkPzZGlnbzwvdGg+CgkJPHRoPk5vbWJyZTwvdGg+CgkJPHRoPlJlc3BvbnNhYmxlPC90aD4KCQk8dGg+VmVyc2nzbjwvdGg+CgkJPHRoPkPzZGlnbzwvdGg+CgkJPHRoPk5... (64base binary)</content>
</doc:create>
</soapenv:Body>
</soapenv:Envelope>

Can you help me where is the fault?.

Thanks
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: create Document

Fri Feb 04, 2011 11:28 am

On this page you can find some clients for the various Programming language: http://wiki.logicaldoc.com/wiki/Web_Services
Also on the same wiki we published the Web-service reference of LD 6.0 http://wiki.logicaldoc.com/wiki/Web_Services_Reference
juaneduardohv
Posts: 2
Joined: Mon Jan 31, 2011 9:47 pm

Re: create Document

Mon Feb 14, 2011 7:13 pm

Thanks.

The error was in the date format. I fixed the format from Y-m-d to the Y-m-d H:i:s
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: create Document

Mon Feb 14, 2011 11:01 pm

Hi Juhane,
may I ask you in what programming language you're calling the web-services of logicaldoc?
Just last Friday we have updated all the examples in different programming languages (. NET, Java and PHP), I'm glad that our examples have been of help.
Best regards
Alex
real_skydiver
Posts: 13
Joined: Sat Feb 19, 2011 8:36 pm

Re: create Document

Wed Feb 23, 2011 7:57 am

Hi Alex,
Just last Friday we have updated all the examples in different programming languages (. NET, Java and PHP), I'm glad that our examples have been of help.
Is there by any chance a C++ version (even if totally incomplete)? No problem if not, it just would help to save some time. Especially in user authentication I would have to do a lot of reverse engineering.

I'm not a big fan of .NET (load time, resources ...). I prefer to stick with C++ for the rest of my carer ;)

Thanks,
Enrico
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: create Document

Wed Feb 23, 2011 9:31 am

I'm sorry Enrico
but actually we don't have the Web-services samples for C++.
Maybe in the future, I hope :)

Return to “Web Services”

Who is online

Users browsing this forum: Google [Bot] and 19 guests