Solved

Passing the current date time in a SOAP request with SOAPUI

Posted on 2014-02-06
6
7,700 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

When coding a Webservice to provide data, the normal way is to create a method that returns a Dataset object.   But a Dataset cannot be used easily from another platform, such as PHP,  FLAS (FLEX) , etc. Solution : Return a XML Document instea…
New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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