Hi all,

 

Im tring to use cURL to add SQL tables to geoserver and then add them
into my web app as a WMS layer, all is going well thanks to some help
and pointers from this list.  I have however come across what I hope to
be the final stumbling block, adding the table.  So far I have been able
to create the workspace and attach the relevent database, but when I use
the following cURL command it returns ":null".

 

cURL>curl -u admin:geoserver -XPOST -H "Content-type: text/xml" -d
"<featureType><name>County</name></featureType>"
http://localhost:8080/geoserver/

rest/workspaces/SQL_cURL_WS/datastores/DataSource_Test/featuretypes

 

:null

 

Also, please find the xml for the datastore as I think this may be the
problem, but am unsure.

 

 <dataStore>

  <id>DataStoreInfoImpl-559023cb:12b2e7b27eb:-7ffe</id> 

  <name>DataSource_Test</name> 

  <enabled>true</enabled> 

 <workspace>

  <id>WorkspaceInfoImpl-559023cb:12b2e7b27eb:-8000</id> 

  </workspace>

 <connectionParameters>

  <entry key="port">49802</entry> 

  <entry key="passwd">geoserver</entry> 

  <entry key="dbtype">sqlserver</entry> 

  <entry key="host">SQLSERVER_SPATIAL</entry> 

  <entry key="user">admin</entry> 

  <entry key="database">SPATIAL_DataBase</entry> 

  <entry key="namespace">http://SQL_cURL_WS</entry> 

  </connectionParameters>

  </dataStore>

 

Any help or pointers are very welcome!

 

Thanks in advance

 

Chris



IMPORTANT - This email and the information that it contains may be 
confidential, legally privileged and protected by law. Access by the intended 
recipient only is authorised. Any liability (in negligence or otherwise) 
arising from any third party acting, or refraining from acting, on any 
information contained in this email is hereby excluded. If you are not the 
intended recipient, please notify [email protected] immediately 
then delete it and do not disclose the contents to any other person, use it for 
any purpose or store or copy the information in any medium.

Copyright in this email and attachments created by us belong to Amlin plc 
and/or one or more of its subsidiaries (Amlin Group). The author also asserts 
the right to be identified as such and object to any misuse.

The Amlin Group prohibits and takes steps to prevent its email systems from 
being used to view, store or transmit offensive, obscene or discriminatory 
material. If this message contains inappropriate material please report it 
immediately to [email protected].

The Amlin Group records, monitors and may inspect messages that use its 
telecoms systems in order to protect its information, interests and reputation. 
Any message sent by you to or within the Amlin Group may therefore be viewed 
and may be acted upon.

Of the companies within the Amlin Group, Amlin Underwriting Limited, Amlin 
Underwriting Services Limited, Amlin UK Limited and Amlin Plus Limited are 
authorised and regulated by the Financial Services Authority.

This email has been sent by a member of staff of one or more of the following 
Amlin Group companies:

Amlin plc. Registered in England and Wales no. 2854310
Amlin Underwriting Limited. Registered in England and Wales no. 2323018
Amlin Underwriting Services Limited. Registered in England and Wales no. 422615
Amlin UK Limited. Registered in England and Wales no. 2739220
Amlin Plus Limited. Registered in England and Wales no. 4729659

Registered Offices: St Helen's, 1 Undershaft, London EC3A 8ND, United Kingdom

Amlin plc switchboard: 020 7746 1000 
Web Site: http://www.amlin.com
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to