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
Solved

Passing the current date time in a SOAP request with SOAPUI

Posted on 2014-02-06
6
7,503 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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