Solved

Passing the current date time in a SOAP request with SOAPUI

Posted on 2014-02-06
6
7,352 Views
Last Modified: 2016-02-26
Hi,

I need some help with XSD and SOAP

 I have an XSD that has an element called timestamp as below

<element name="timestamp" type="dateTime" minOccurs="1" />

I am compiling the XSD using JAXB compiler to publish  a WSDL. I am then importing the WSDL into SOAPUI to create the request XMLs. My request XML has this element

 <prr:timestamp></prr:timestamp>

I would like to dynamically populate this element  with the current time stamp everytime

I send the SOAP request.

Please let me know how I can do this using the XSD.
0
Comment
Question by:pdurbha
  • 3
  • 3
6 Comments
 
LVL 19

Accepted Solution

by:
Melih SARICA earned 500 total points
ID: 39839429
If ur creating ur SOAP Request with XSL transformation u can use current-dateTime()


details are in here :
http://www.xsltfunctions.com/xsl/c0002.html
0
 
LVL 1

Author Comment

by:pdurbha
ID: 39839976
I am not using XSLT to generate the  SOAP Request (XML). I am using XSD

XSD -> WSDL --> Import to SOAPUI ---> XML (this i want populated with the current time stamp in the timestamp element as defined in my XSD.
0
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 39841140
ok.. how do u generate ur xsd  ?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 1

Author Comment

by:pdurbha
ID: 39844568
by hand..i coded it.
0
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 39846722
put date time while u create the xsd
0
 
LVL 1

Author Comment

by:pdurbha
ID: 39995688
I've requested that this question be deleted for the following reason:

not relevant
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP OAuth Uncaught exception 'OAuthException' 3 61
WCF doubts 3 73
WCF Rest Service 6 107
micro services vs rest web services 16 104
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question