• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 9276
  • Last Modified:

Passing the current date time in a SOAP request with SOAPUI

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
pdurbha
Asked:
pdurbha
  • 3
  • 3
1 Solution
 
Melih SARICAIT ManagerCommented:
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
 
pdurbhaAuthor Commented:
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
 
Melih SARICAIT ManagerCommented:
ok.. how do u generate ur xsd  ?
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
pdurbhaAuthor Commented:
by hand..i coded it.
0
 
Melih SARICAIT ManagerCommented:
put date time while u create the xsd
0
 
pdurbhaAuthor Commented:
I've requested that this question be deleted for the following reason:

not relevant
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now