Getting started with XMPieWSAPI

1,512 views
Skip to first unread message

Oisin

unread,
Jan 6, 2011, 5:23:43 PM1/6/11
to XMPie Interest Group
Hey!! A big hello from your newest noob. Ive been given a project that
doesnt need to be completed until next year but Im already getting
bogged down.
1. Ive only been working in .net development a few months since
college.
2. The project is to get uPlan automated using a document action in
Pageflex to create batches of images (once a uPlan and InDesign Image
and Database) have been set up on the local Xmpie server.

Ive managed to find the dll for XMPieWSAPI, which seems to be called
XMPieAPIWS everywhere else. I have it running as a reference in a C#
project and im just playing around with it now to see what can be
done. If anyone has any sample code for running plans from C# apps Id
be very grateful of any help!

Any response appreciated!!

Oisin
oisint...@gmail.com

Timothy Perrett

unread,
Jan 6, 2011, 8:55:08 PM1/6/11
to xmpie...@googlegroups.com
Where did you get this DLL? If it was from uProduce you really, really don't want to be doing that.

I am presuming you have never used SOAP before from .net? Right click your project, "Add web reference" > enter url > go. Job done; .net generates reference proxies for you to form the WSDL->code contracts so you have the types at compile time.

****Do not reference the internal uProduce DLLs**** I can't stress this enough. Imagine me hold a large neon sign with these words on.

Cheers, Tim

> --
> You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
> To post to this group, send email to xmpie...@googlegroups.com.
> To unsubscribe from this group, send email to xmpie-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/xmpie-users?hl=en.
>
>

Walter Van waard

unread,
Jan 7, 2011, 12:55:45 PM1/7/11
to xmpie...@googlegroups.com
Hi Oisin,

I presume you have a Uproduce server setup?
If so , you have your document and plan and data uploaded
to the server. All these have ID's mark those as you need them
for automation. Also make sure you have a user account that has access
to the campaign you would like to automate. Third, create a destination
in Uproduce and mark it ID as well.

If you have the above docs. The procedure for creating an automated
uproduce job starts with the creation of a jobticket. This jobticket
holds all the info the server needs for creating a document of whatever type.
if i am correct it is a couple of webservices you need in your references.
jobticket_ssp.asmx?wsdl, job_ssp.asmx?wsdl and one for producing the created ticket.

The ticket explains itself, job is for thing like getting your outputresult , status messages,
deleting upon finishing etc..the produce webservice is needed to start the proces.
you have to look it up as i am not at my desk at the moment to view an example..

hope this helps a bit...and read read read a lot of docs and know the logic :-)
Walter

Verstuurd vanaf mijn iPad

Oisin

unread,
Jan 7, 2011, 1:22:13 PM1/7/11
to XMPie Interest Group
Hey Tim!
Thanks for the quick reply.
I found the dll on the server. Your advice has been heeded and Im
changing my approach as best I can. Ive tried setting the web
reference as you described but it wont allow connection to the server,
could you give an example of a typical url or where it should point
to?
The error I get when
trying.................................................

There was an error downloading 'http://servername/c$/Program Files/
XMPie/XMPie API SDK/Samples/XMPieSelectDocument/App_WebReferences/
XMPieWSAPI'.
Access to the path 'http://servername/Program Files/XMPie/XMPie API
SDK/Samples/XMPieSelectDocument/App_WebReferences/XMPieWSAPI' is
denied.
If the service is defined in the current solution, try building the
solution and adding the service reference again.
.............................................................................
I have read/write access to the server.
Am I right to be looking for a wsdl file from the xmpie server? I dont
have any experience with SOAP.
Really what I want to do is run a Plan file from outside the server...
how should I tackle this?

Thanks for reading!

Oisin

Bill

unread,
Jan 7, 2011, 1:29:56 PM1/7/11
to xmpie...@googlegroups.com
If you bought a PersonalEffect configuration, which includes the WSAPIs, you should also have received the SDK from XMPie (*).

The SDK contains several examples or code snippets, coded in several languages, which will certainly help you a lot.

If you did not receive the SDK, contact your XMPie representative.

(*) If you bought a PersonalEffect configuration, which does not include the APIs (i.e. PE uStore LE or PE E-Media), and you did not purchase the WSAPIs as an extra option, you are not allowed to use the WSAPIs.

wvwaard

unread,
Jan 7, 2011, 1:40:16 PM1/7/11
to XMPie Interest Group
Oisin,

I see you are into the basic part. First of NEVER use a program files
dir ...you cannot even...
the syntax is : http://webserver/xmpiewsapi/webservice_ssp.asmx?wsdl

in real : http://webserver/xmpiewsapi/job_ssp.asmx?wsdl for adding
the reference to your .net environment.
Please see the attached .cs file as a starter for you with comments
included..

Greetz
Walter

On 7 jan, 19:22, Oisin <oisintarr...@gmail.com> wrote:
> Hey Tim!
> Thanks for the quick reply.
> I found the dll on the server. Your advice has been heeded and Im
> changing my approach as best I can. Ive tried setting the web
> reference as you described but it wont allow connection to the server,
> could you give an example of a typical url or where it should point
> to?
> The error I get when
> trying.................................................
>
> There was an error downloading 'http://servername/c$/ProgramFiles/
> XMPie/XMPie API SDK/Samples/XMPieSelectDocument/App_WebReferences/
> XMPieWSAPI'.
> Access to the path 'http://servername/ProgramFiles/XMPie/XMPie API
> SDK/Samples/XMPieSelectDocument/App_WebReferences/XMPieWSAPI' is
> denied.
> If the service is defined in the current solution, try building the
> solution and adding the service reference again.
> ...........................................................................­..

Igor Vorobeychik

unread,
Jan 7, 2011, 3:06:01 PM1/7/11
to XMPie Interest Group
Getting started with XMPieWSAPI
1) Learn how to consume Microsoft Web Services from your technology
(.Net, Coldfusion , PHP ...)
2) Learn XMPie , you have to understand first what is XMPie uPlan ,
ADOR objects , variables, campaign dials, data sources , assets ,
documents , document package , thumbnails .., recipient
lists ..........
Without understanding XMPie it will be very hard and I'd say useless
3) Get copy of our SDK it has everything you need , but it assume you
know 2 .

XMPie offer also training on site and via WebEx , check with your
XMPie support.

Igor.

Oisin

unread,
Jan 10, 2011, 2:17:14 PM1/10/11
to XMPie Interest Group

Hey All, a great thank you for all the help so far. Im getting a
better idea of XMPie everytime I look at it.
To answer some questions...

1. A uProduce Server, which I have found out is the XMPie server
(excuse the innocence but I had to make sure) has already been setup.
2. SOAP is new to me but Im reading quite a lot about it today.
3. The SDK has been located. I may need some pointers as to the best
way to use its full abilities.
4. Igor.. Ive been reading and re-reading the pdf's on the server
about the different attributes of uPlan. I will understand these
better once Ive used them in practice.
5. Unfortunetly I dont think Ill have access to XMPie training but
would be interested in it in the future.

One question I have now is...
Since the server has already been created, where do I find the
existing ID's for Account, Campaign, and Documents?

Kind regards!

Oisin

Igor Vorobeychik

unread,
Jan 10, 2011, 4:46:00 PM1/10/11
to XMPie Interest Group
Hi Oisin,
From your question it seems to me that you do not know XMPie, do you
have access to XMPie dashboard ?
1) Server may be installed but it alos can be that you can't run API's
2) you need to know your own technology
3) Why you do not have access to XMPie training ?
Igor.
Reply all
Reply to author
Forward
0 new messages